diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-22 16:05:38 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-22 16:05:38 +0000 |
commit | 6bb6dd2bfd526fff9a469fddd9515aec268bfe15 (patch) | |
tree | 0a6fc064c44a055e86714473b202d1d64a7d5fe6 /src/Text/Pandoc/Writers/Docbook.hs | |
parent | d03ec5a4a243a80856b53fa0cdf222d8dfdb1dd7 (diff) |
+ Added support for superscript, subscript, and
strikeout to all writers. (Thanks to Bradley Kuhn
for the patches for strikeout, here slightly modified.)
+ Refactored character escaping using the new functions
escapeStringUsing and backslashEscapes.
+ Added state to LaTeX writer, which now keeps track of what
packages need to be included in the preamble, based on the
content of the document. (Thus, e.g., ulem is only required
if you use strikeout.)
git-svn-id: https://pandoc.googlecode.com/svn/trunk@755 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/Text/Pandoc/Writers/Docbook.hs')
-rw-r--r-- | src/Text/Pandoc/Writers/Docbook.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/Docbook.hs b/src/Text/Pandoc/Writers/Docbook.hs index 7366ee59c..2bb29da6c 100644 --- a/src/Text/Pandoc/Writers/Docbook.hs +++ b/src/Text/Pandoc/Writers/Docbook.hs @@ -233,6 +233,13 @@ inlineToDocbook opts (Emph lst) = inlineToDocbook opts (Strong lst) = inTags False "emphasis" [("role", "strong")] (inlinesToDocbook opts lst) +inlineToDocbook opts (Strikeout lst) = + inTags False "emphasis" [("role", "strikethrough")] + (inlinesToDocbook opts lst) +inlineToDocbook opts (Superscript lst) = + inTagsSimple "superscript" (inlinesToDocbook opts lst) +inlineToDocbook opts (Subscript lst) = + inTagsSimple "subscript" (inlinesToDocbook opts lst) inlineToDocbook opts (Quoted _ lst) = inTagsSimple "quote" (inlinesToDocbook opts lst) inlineToDocbook opts Apostrophe = text "'" |