Tigthen up fix to #5446.

We only treat Span as transparent if it has no attributes.
This commit is contained in:
John MacFarlane 2019-04-16 09:32:19 -07:00
parent 32e358bfe9
commit 144b2eabc2

View file

@ -473,8 +473,8 @@ flatten outer
(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
(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