aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-11-27 10:44:58 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-11-27 10:44:58 -0800
commit71c9316a597298415a7d4cb7f758b523ac9339cd (patch)
tree7e72e6583b612a9d426e54e269940b36a927b3a9 /src/Text/Pandoc
parentcae3f8edbaac60e16152c87b93f0da317c1952f9 (diff)
downloadpandoc-71c9316a597298415a7d4cb7f758b523ac9339cd.tar.gz
Use [] for superscripts and subscripts in textile writer.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/Textile.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Writers/Textile.hs b/src/Text/Pandoc/Writers/Textile.hs
index 05acb5e8b..cb8f20a0a 100644
--- a/src/Text/Pandoc/Writers/Textile.hs
+++ b/src/Text/Pandoc/Writers/Textile.hs
@@ -344,13 +344,13 @@ inlineToTextile opts (Superscript lst) = do
contents <- inlineListToTextile opts lst
return $ if '^' `elem` contents
then "<sup>" ++ contents ++ "</sup>"
- else "^" ++ contents ++ "^"
+ else "[^" ++ contents ++ "^]"
inlineToTextile opts (Subscript lst) = do
contents <- inlineListToTextile opts lst
return $ if '~' `elem` contents
then "<sub>" ++ contents ++ "</sub>"
- else "~" ++ contents ++ "~"
+ else "[~" ++ contents ++ "~]"
inlineToTextile opts (SmallCaps lst) = inlineListToTextile opts lst