diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-07-26 18:46:51 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-07-26 18:46:51 -0700 |
commit | 31b8a95c1dc84b9351d81b4b9122f56b29b19c6c (patch) | |
tree | aa766a51032a10512bd0eac0310600e7e4e6bb3e /src/Text/Pandoc.hs | |
parent | 18f4490482aa4f21a1c4e4a9493fb3a88815dcfa (diff) | |
parent | 9e4604fa0b20b12177fe1f24650e4dfaf388e33a (diff) | |
download | pandoc-31b8a95c1dc84b9351d81b4b9122f56b29b19c6c.tar.gz |
Merge pull request #1453 from mpickering/txt2tagsfinal
Txt2Tags Reader
Diffstat (limited to 'src/Text/Pandoc.hs')
-rw-r--r-- | src/Text/Pandoc.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Text/Pandoc.hs b/src/Text/Pandoc.hs index b303fa7d7..be34641a9 100644 --- a/src/Text/Pandoc.hs +++ b/src/Text/Pandoc.hs @@ -63,6 +63,7 @@ module Text.Pandoc , writers -- * Readers: converting /to/ Pandoc format , Reader (..) + , mkStringReader , readDocx , readMarkdown , readMediaWiki @@ -76,6 +77,8 @@ module Text.Pandoc , readHaddock , readNative , readJSON + , readTxt2Tags + , readTxt2TagsNoMacros -- * Writers: converting /from/ Pandoc format , Writer (..) , writeNative @@ -130,6 +133,7 @@ import Text.Pandoc.Readers.Textile import Text.Pandoc.Readers.Native import Text.Pandoc.Readers.Haddock import Text.Pandoc.Readers.Docx +import Text.Pandoc.Readers.Txt2Tags import Text.Pandoc.Writers.Native import Text.Pandoc.Writers.Markdown import Text.Pandoc.Writers.RST @@ -227,6 +231,7 @@ readers = [ ("native" , StringReader $ \_ s -> return $ readNative s) ,("latex" , mkStringReader readLaTeX) ,("haddock" , mkStringReader readHaddock) ,("docx" , mkBSReader readDocx) + ,("t2t" , mkStringReader readTxt2TagsNoMacros) ] data Writer = PureStringWriter (WriterOptions -> Pandoc -> String) |