From 1cfccfe6c2c4fb6a7c15f7953a31fad80bffd580 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Thu, 17 Feb 2011 13:50:39 +0100 Subject: Explicit link support enabled. mppdown now really parses explicit links! --- src/parser/text_p.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/parser/text_p.cpp') diff --git a/src/parser/text_p.cpp b/src/parser/text_p.cpp index ce1e233..447a556 100644 --- a/src/parser/text_p.cpp +++ b/src/parser/text_p.cpp @@ -29,10 +29,10 @@ text_p::text_p() : text_p::base_type(text_) { | lit('\'') >> attr(ALT) >> +text_(_r1) >> '\'' | lit('`') >> attr(CODE) >> +ptext_(val(L"`")) >> '`' | lit('$') >> attr(MATH) >> +ptext_(val(L"$")) >> '$' - | lit("^{") >> attr(SUPER) >> +text_(val(L"*'`$^}")) >> '}' + | lit("^{") >> attr(SUPER) >> +text_(val(L"*'`$^}[")) >> '}' | lit('^') >> attr(SUPER) >> +text_(val(L"*'`$ ")) - | lit(L"@\"") >> attr(QUOTE) >> +text_(val(L"*'`$@\"")) >> '"' - | lit(L"@_") >> attr(SUB) >> +text_(val(L"*'`$@_")) >> '_'; + | lit(L"@\"") >> attr(QUOTE) >> +text_(val(L"*'`$@\"[")) >> '"' + | lit(L"@_") >> attr(SUB) >> +text_(val(L"*'`$@_[")) >> '_'; pstext_ = lit('[') >> attr(LINK) >> +text_(val(L"]")) >> ']' >> lit('(') >> ptext_(val(L")")) >> ')'; -- cgit v1.2.3-70-g09d2