aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-04-14 17:46:17 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-04-14 17:46:17 -0700
commit2198ac080bb97828b9770d0522b1d4d854deb8c2 (patch)
tree2e473fd359c7ade2684ff8b077710dff7fa9c1fc /src/Text
parentd7e8252ba6d2124981b4c7996134f3be4fe8c8c1 (diff)
downloadpandoc-2198ac080bb97828b9770d0522b1d4d854deb8c2.tar.gz
Got footnote working in docbook reader.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/DocBook.hs3
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)