diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-04-14 17:46:17 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-04-14 17:46:17 -0700 |
commit | 2198ac080bb97828b9770d0522b1d4d854deb8c2 (patch) | |
tree | 2e473fd359c7ade2684ff8b077710dff7fa9c1fc | |
parent | d7e8252ba6d2124981b4c7996134f3be4fe8c8c1 (diff) | |
download | pandoc-2198ac080bb97828b9770d0522b1d4d854deb8c2.tar.gz |
Got footnote working in docbook reader.
-rw-r--r-- | src/Text/Pandoc/Readers/DocBook.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs index a570964b6..488e179da 100644 --- a/src/Text/Pandoc/Readers/DocBook.hs +++ b/src/Text/Pandoc/Readers/DocBook.hs @@ -32,7 +32,7 @@ parseBlock (Elem e) = "sect5" -> sect 5 "sect6" -> sect 6 "section" -> gets dbSectionLevel >>= sect . (+1) - "title" -> return $ mempty + "title" -> return $ mempty -- processed by sect _ -> innerBlocks where innerBlocks = mconcat <$> (mapM parseBlock $ elContent e) getInlines e' = (trimInlines . mconcat) <$> @@ -65,6 +65,7 @@ parseInline (Elem e) = (elAttribs e) of Just "strong" -> strong <$> innerInlines _ -> emph <$> innerInlines + "footnote" -> (note . mconcat) <$> (mapM parseBlock $ elContent e) _ -> innerInlines where innerInlines = (trimInlines . mconcat) <$> (mapM parseInline $ elContent e) |