diff options
| author | Grégoire Duchêne <gduchene@fastmail.net> | 2011-02-17 13:50:39 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@fastmail.net> | 2011-02-17 13:50:39 +0100 |
| commit | 1cfccfe6c2c4fb6a7c15f7953a31fad80bffd580 (patch) | |
| tree | 56bac360519af7f6885b46dd2713aa43d5cd8e01 | |
| parent | 4291a6aac9ee4a1c79bc24c40d4c558bf88d3e93 (diff) | |
Explicit link support enabled.
mppdown now really parses explicit links!
| -rw-r--r-- | src/parser/text_p.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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")")) >> ')'; |
