@@ -25,8 +25,25 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2525 Stability : alpha
2626 Portability : portable
2727
28−This helper module exports the basic writers, readers, and definitions
29−from the Pandoc libraries.
28+This helper module exports the main writers, readers, and data
29+structure definitions from the Pandoc libraries.
30+
31+A typical application will chain together a reader and a writer
32+to convert strings from one format to another. For example, the
33+following simple program will act as a filter converting markdown
34+fragments to reStructuredText, using reference-style links instead of
35+inline links:
36+
37+> module Main where
38+> import Text.Pandoc
39+>
40+> markdownToRST :: String -> String
41+> markdownToRST = encodeUTF8 .
42+> (writeRST defaultWriterOptions {writerReferenceLinks = True}) .
43+> (readMarkdown defaultParserState) . decodeUTF8
44+>
45+> main = interact markdownToRST
46+
3047-}
3148
3249module Text.Pandoc
@@ -41,6 +58,11 @@ module Text.Pandoc
4158 -- * Parser state used in readers
4259 , ParserState (..)
4360 , defaultParserState
61+ , ParserContext (..)
62+ , QuoteContext (..)
63+ , KeyTable
64+ , NoteTable
65+ , HeaderType (..)
4466 -- * Writers: converting /from/ Pandoc format
4567 , writeMarkdown
4668 , writeRST
@@ -48,6 +70,7 @@ module Text.Pandoc
4870 , writeHtml
4971 , writeHtmlString
5072 , writeS5
73+ , writeS5String
5174 , writeDocbook
5275 , writeMan
5376 , writeRTF
@@ -55,9 +78,10 @@ module Text.Pandoc
5578 -- * Writer options used in writers
5679 , WriterOptions (..)
5780 , defaultWriterOptions
58− -- * UTF-8 encoding and decoding
59− , encodeUTF8
60− , decodeUTF8
81+ -- * Default headers for various output formats
82+ , module Text.Pandoc.Writers.DefaultHeaders
83+ -- * Functions for converting to and from UTF-8
84+ , module Text.Pandoc.UTF8
6185 ) where
6286
6387import Text.Pandoc.Definition
@@ -73,6 +97,7 @@ import Text.Pandoc.Writers.S5
7397import Text.Pandoc.Writers.Docbook
7498import Text.Pandoc.Writers.Man
7599import Text.Pandoc.Writers.RTF
100+import Text.Pandoc.Writers.DefaultHeaders
76101import Text.Pandoc.UTF8
77102import Text.Pandoc.Shared
78103