diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-10-04 22:09:23 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2009-10-04 22:09:23 +0000 |
commit | 74ac66a0cbb2c61a55f6d98128272d3568b0ead5 (patch) | |
tree | d48eb75eed203372672177a1dfe9fd3e16a3708a /src/Text/Pandoc/Readers/TeXMath.hs | |
parent | 6191a1fa745c067d3df153b244e9829255600f5d (diff) |
Added haddock comments warning that readers assume \n line endings.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1608 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/Text/Pandoc/Readers/TeXMath.hs')
-rw-r--r-- | src/Text/Pandoc/Readers/TeXMath.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/TeXMath.hs b/src/Text/Pandoc/Readers/TeXMath.hs index 04b0f3b8f..2f35910ce 100644 --- a/src/Text/Pandoc/Readers/TeXMath.hs +++ b/src/Text/Pandoc/Readers/TeXMath.hs @@ -35,7 +35,8 @@ import Text.ParserCombinators.Parsec import Text.Pandoc.Definition -- | Converts a string of raw TeX math to a list of 'Pandoc' inlines. -readTeXMath :: String -> [Inline] +readTeXMath :: String -- ^ String to parse (assumes @'\n'@ line endings) + -> [Inline] readTeXMath inp = case parse teXMath ("formula: " ++ inp) inp of Left _ -> [Str inp] -- if unparseable, just include original Right res -> res |