mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 17:26:32 +00:00
markdown writer: always write bracketed_spans' attributes
This commit is contained in:
@@ -952,8 +952,10 @@ inlineToMarkdown opts (Span attrs ils) = do
|
||||
True -> contents
|
||||
False | attrs == nullAttr -> contents
|
||||
| isEnabled Ext_bracketed_spans opts ->
|
||||
"[" <> contents <> "]" <>
|
||||
linkAttributes opts attrs
|
||||
let attrs' = if attrs /= nullAttr
|
||||
then attrsToMarkdown attrs
|
||||
else empty
|
||||
in "[" <> contents <> "]" <> attrs'
|
||||
| isEnabled Ext_raw_html opts ||
|
||||
isEnabled Ext_native_spans opts ->
|
||||
tagWithAttrs "span" attrs <> contents <> text "</span>"
|
||||
|
||||
Reference in New Issue
Block a user