mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-26 17:35:49 +00:00
Org Writer: Write anchor elements
The Org Writer now writes empty span elements which have an id as an anchor.
For example `Span ("uid", [], []) []` becomes `<<uid>>`
This commit is contained in:
@@ -238,6 +238,8 @@ inlineListToOrg lst = mapM inlineToOrg lst >>= return . hcat
|
||||
|
||||
-- | Convert Pandoc inline element to Org.
|
||||
inlineToOrg :: Inline -> State WriterState Doc
|
||||
inlineToOrg (Span (uid, [], []) []) =
|
||||
return $ "<<" <> text uid <> ">>"
|
||||
inlineToOrg (Span _ lst) =
|
||||
inlineListToOrg lst
|
||||
inlineToOrg (Emph lst) = do
|
||||
|
||||
Reference in New Issue
Block a user