@@ -949,11 +949,10 @@ inlineToMarkdown opts (Span attrs ils) = do
949 contents <- inlineListToMarkdown opts ils
949 contents <- inlineListToMarkdown opts ils
950 return $ case plain of
950 return $ case plain of
951 True -> contents
951 True -> contents
952+ False | attrs == nullAttr -> contents
952− False | isEnabled Ext_bracketed_spans opts ->
953+ | isEnabled Ext_bracketed_spans opts ->
953 "[" <> contents <> "]" <>
954 "[" <> contents <> "]" <>
954− if attrs == nullAttr
956− else linkAttributes opts attrs
955+ linkAttributes opts attrs
957 | isEnabled Ext_raw_html opts ||
956 | isEnabled Ext_raw_html opts ||
958 isEnabled Ext_native_spans opts ->
957 isEnabled Ext_native_spans opts ->
959 tagWithAttrs "span" attrs <> contents <> text "</span>"
958 tagWithAttrs "span" attrs <> contents <> text "</span>"