mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
Djot reader: add Space elements.
Previously we just got big Str elements with spaces included. But many pandoc writers assume that breakable spaces will be Space elements. So, we got odd results with e.g. jira output. Closes #11250.
This commit is contained in:
@@ -186,7 +186,7 @@ convertInlines = fmap mconcat . mapM convertInline . F.toList . D.unMany
|
||||
convertInline :: PandocMonad m => D.Node D.Inline -> ReaderT Env m Inlines
|
||||
convertInline (D.Node pos attr il) = addAttrToInline pos attr <$>
|
||||
case il of
|
||||
D.Str bs -> pure $ str (UTF8.toText bs)
|
||||
D.Str bs -> pure $ text (UTF8.toText bs)
|
||||
D.Emph ils -> emph <$> convertInlines ils
|
||||
D.Strong ils -> strong <$> convertInlines ils
|
||||
D.Highlight ils -> spanWith ("",["mark"],[]) <$> convertInlines ils
|
||||
|
||||
+1634
-294
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user