aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-05-09 11:01:10 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-05-09 11:01:10 -0700
commita408ce5fd70c32ccad869f71ff8e8fd7c2611c36 (patch)
treefc77b0f2fbb1305f2967f04736179f7e0ba79e0b /src/Text/Pandoc
parent83d0e7e4bde416969306ef5bc3560d911fd8c5af (diff)
downloadpandoc-a408ce5fd70c32ccad869f71ff8e8fd7c2611c36.tar.gz
DocBook reader: Add attribute for "option" code inline.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/DocBook.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/DocBook.hs b/src/Text/Pandoc/Readers/DocBook.hs
index bcef38d74..9a655205c 100644
--- a/src/Text/Pandoc/Readers/DocBook.hs
+++ b/src/Text/Pandoc/Readers/DocBook.hs
@@ -773,9 +773,9 @@ parseInline (Elem e) =
then singleQuoted contents
else doubleQuoted contents
"code" -> return $ code $ strContent e -- TODO attrs
- "filename" -> return $ code $ strContent e -- TODO attrs
+ "filename" -> return $ codeWith ("",["filename"],[]) $ strContent e -- TODO attrs
"literal" -> return $ code $ strContent e -- TODO attrs
- "option" -> return $ code $ strContent e -- TODO attrs
+ "option" -> return $ codeWith ("",["option"],[]) $ strContent e -- TODO attrs
"markup" -> return $ code $ strContent e -- TODO attrs
"wordasword" -> emph <$> innerInlines
"varname" -> return $ codeWith ("",["varname"],[]) $ strContent e