diff options
| author | John MacFarlane <[email protected]> | 2024-06-18 13:24:15 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2024-06-18 13:24:59 -0700 |
| commit | 34aeb289c9715f23b3ab1c511ec2cd675f9d2d4b (patch) | |
| tree | 52ed5b116e5ee346ab07e93a91052cb49fed2766 /src/Text | |
| parent | 1e8799ca60352ecf0492bfcac4b923608c55a35c (diff) | |
Textile reader: don't let spans begin right after a symbol.
Closes #9878.
Diffstat (limited to 'src/Text')
| -rw-r--r-- | src/Text/Pandoc/Readers/Textile.hs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Textile.hs b/src/Text/Pandoc/Readers/Textile.hs index fcfff8aa9..817c31c24 100644 --- a/src/Text/Pandoc/Readers/Textile.hs +++ b/src/Text/Pandoc/Readers/Textile.hs @@ -685,9 +685,12 @@ escapedTag = B.str . T.pack <$> -- | Any special symbol defined in wordBoundaries symbol :: PandocMonad m => TextileParser m Inlines -symbol = B.str . T.singleton <$> (notFollowedBy newline *> - notFollowedBy rawHtmlBlock *> - oneOf wordBoundaries) +symbol = do + c <- notFollowedBy newline *> + notFollowedBy rawHtmlBlock *> + oneOf wordBoundaries + updateLastStrPos + pure $ B.str . T.singleton $ c -- | Inline code code :: PandocMonad m => TextileParser m Inlines |
