diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-11-27 10:44:58 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-11-27 10:44:58 -0800 |
commit | 71c9316a597298415a7d4cb7f758b523ac9339cd (patch) | |
tree | 7e72e6583b612a9d426e54e269940b36a927b3a9 /src/Text/Pandoc | |
parent | cae3f8edbaac60e16152c87b93f0da317c1952f9 (diff) | |
download | pandoc-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.hs | 4 |
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 |