Textile reader: Avoid parsing dashes as strikeout.
Previously the input text-- text-- text-- text-- would be parsed with strikeouts rather than dashes. This fixes the problem by requiring that a strikeout delimiting - not be followed by a -. Closes #631.
This commit is contained in:
parent
632fd49d07
commit
ae68836352
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ inlineMarkup = choice [ simpleInline (string "??") (Cite [])
|
|||
, simpleInline (char '*') Strong
|
||||
, simpleInline (char '_') Emph
|
||||
, simpleInline (char '+') Emph -- approximates underline
|
||||
, simpleInline (char '-') Strikeout
|
||||
, simpleInline (char '-' <* notFollowedBy (char '-')) Strikeout
|
||||
, simpleInline (char '^') Superscript
|
||||
, simpleInline (char '~') Subscript
|
||||
]
|
||||
|
|
Loading…
Add table
Reference in a new issue