AsciiDoc writer: support anchors in spans with id elements.
This commit is contained in:
parent
3e079a25bc
commit
e4b3da6929
1 changed files with 5 additions and 1 deletions
|
@ -445,4 +445,8 @@ inlineToAsciiDoc opts (Note [Plain inlines]) = do
|
|||
return $ text "footnote:[" <> contents <> "]"
|
||||
-- asciidoc can't handle blank lines in notes
|
||||
inlineToAsciiDoc _ (Note _) = return "[multiblock footnote omitted]"
|
||||
inlineToAsciiDoc opts (Span _ ils) = inlineListToAsciiDoc opts ils
|
||||
inlineToAsciiDoc opts (Span (ident,_,_) ils) = do
|
||||
let identifier = if (null ident) then empty else ("[[" <> text ident <> "]]")
|
||||
contents <- inlineListToAsciiDoc opts ils
|
||||
return $ identifier <> contents
|
||||
|
||||
|
|
Loading…
Reference in a new issue