diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2019-04-15 09:48:11 -0700 | 
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2019-04-15 09:48:11 -0700 | 
| commit | e409509a681ee75c6d3eec0b913d40c26aeaabb2 (patch) | |
| tree | 0e93fa993dd0a9648725f07a202e6689d7b696aa /src/Text/Pandoc | |
| parent | 6d19c08e9f5bae0547ca98b853fd59921a391623 (diff) | |
| download | pandoc-e409509a681ee75c6d3eec0b913d40c26aeaabb2.tar.gz | |
RST writer: treat Span as transparent.
Previously an Emph inside a Span was being treated as
nested markup and ignored.  With this patch, the Span
is just ignored.
Closes #5446.
Diffstat (limited to 'src/Text/Pandoc')
| -rw-r--r-- | src/Text/Pandoc/Writers/RST.hs | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/Text/Pandoc/Writers/RST.hs b/src/Text/Pandoc/Writers/RST.hs index bf7b35579..c4fd27132 100644 --- a/src/Text/Pandoc/Writers/RST.hs +++ b/src/Text/Pandoc/Writers/RST.hs @@ -472,6 +472,9 @@ flatten outer            -- them and they will be readable and parsable            (Quoted _ _, _)          -> keep f i            (_, Quoted _ _)          -> keep f i +          -- spans are not rendered using RST inlines, so we can keep them +          (Span _ _, _)            -> keep f i +          (_, Span _ _)            -> keep f i            -- inlineToRST handles this case properly so it's safe to keep            (Link _ _ _, Image _ _ _) -> keep f i            -- parent inlines would prevent links from being correctly | 
