git.iko.soy/typeable/pandoc
on master help sign in
RST writer: treat Span as transparent.
e409509John MacFarlane
src/Text/Pandoc/Writers/RST.hs+3
@@ -472,6 +472,9 @@ flatten outer
472 -- them and they will be readable and parsable
472 -- them and they will be readable and parsable
473 (Quoted _ _, _) -> keep f i
473 (Quoted _ _, _) -> keep f i
474 (_, Quoted _ _) -> keep f i
474 (_, Quoted _ _) -> keep f i
475+ -- spans are not rendered using RST inlines, so we can keep them
476+ (Span _ _, _) -> keep f i
477+ (_, Span _ _) -> keep f i
475 -- inlineToRST handles this case properly so it's safe to keep
478 -- inlineToRST handles this case properly so it's safe to keep
476 (Link _ _ _, Image _ _ _) -> keep f i
479 (Link _ _ _, Image _ _ _) -> keep f i
477 -- parent inlines would prevent links from being correctly
480 -- parent inlines would prevent links from being correctly
test/command/5446.mdnew file+6
@@ -0,0 +1,6 @@
1+```
2+% pandoc -f latex -t rst
3+{\em test test \/}
4+^D
5+*test test*
6+```