mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 15:38:09 +08:00
Textile reader: don't let spans begin right after a symbol.
Closes #9878.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
```
|
||||
% pandoc -f textile -t native
|
||||
15% 50%
|
||||
^D
|
||||
[ Para [ Str "15%" , Space , Str "50%" ] ]
|
||||
```
|
||||
Reference in New Issue
Block a user