This file is indexed.

/usr/share/doc/libghc-pandoc-doc/html/Text-Pandoc.html is in libghc-pandoc-doc 1.19.2.4~dfsg-1build4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Text.Pandoc</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Text-Pandoc.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-Pandoc.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">pandoc-1.19.2.4: Conversion between markup formats</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>Copyright (C) 2006-2016 John MacFarlane</td></tr><tr><th>License</th><td>GNU GPL, version 2 or above</td></tr><tr><th>Maintainer</th><td>John MacFarlane &lt;jgm@berkeley.edu&gt;</td></tr><tr><th>Stability</th><td>alpha</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Text.Pandoc</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Definitions</a></li><li><a href="#g:2">Generics</a></li><li><a href="#g:3">Options</a></li><li><a href="#g:4">Error handling</a></li><li><a href="#g:5">Lists of readers and writers</a></li><li><a href="#g:6">Readers: converting <em>to</em> Pandoc format</a></li><li><a href="#g:7">Writers: converting <em>from</em> Pandoc format</a></li><li><a href="#g:8">Rendering templates and default templates</a></li><li><a href="#g:9">Miscellaneous</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>This helper module exports the main writers, readers, and data
structure definitions from the Pandoc libraries.</p><p>A typical application will chain together a reader and a writer
to convert strings from one format to another.  For example, the
following simple program will act as a filter converting markdown
fragments to reStructuredText, using reference-style links instead of
inline links:</p><pre>module Main where
import Text.Pandoc

markdownToRST :: String -&gt; String
markdownToRST =
  writeRST def {writerReferenceLinks = True} .
  handleError . readMarkdown def

main = getContents &gt;&gt;= putStrLn . markdownToRST</pre><p>Note:  all of the readers assume that the input text has <code>'\n'</code>
line endings.  So if you get your input text from a web form,
you should remove <code>'\r'</code> characters using <code>filter (/='\r')</code>.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short">module <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html">Text.Pandoc.Definition</a></li><li class="src short">module <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Generic.html">Text.Pandoc.Generic</a></li><li class="src short">module <a href="Text-Pandoc-Options.html">Text.Pandoc.Options</a></li><li class="src short">module <a href="Text-Pandoc-Error.html">Text.Pandoc.Error</a></li><li class="src short"><a href="#v:readers">readers</a> :: [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="Text-Pandoc.html#t:Reader">Reader</a>)]</li><li class="src short"><a href="#v:writers">writers</a> :: [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="Text-Pandoc.html#t:Writer">Writer</a>)]</li><li class="src short"><span class="keyword">data</span> <a href="#t:Reader">Reader</a><ul class="subs"><li>= <a href="#v:StringReader">StringReader</a> (<a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>))</li><li>| <a href="#v:ByteStringReader">ByteStringReader</a> (<a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> (<a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>, <a href="Text-Pandoc-MediaBag.html#t:MediaBag">MediaBag</a>)))</li></ul></li><li class="src short"><a href="#v:mkStringReader">mkStringReader</a> :: (<a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>) -&gt; <a href="Text-Pandoc.html#t:Reader">Reader</a></li><li class="src short"><a href="#v:readDocx">readDocx</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> (<a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>, <a href="Text-Pandoc-MediaBag.html#t:MediaBag">MediaBag</a>)</li><li class="src short"><a href="#v:readOdt">readOdt</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> (<a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>, <a href="Text-Pandoc-MediaBag.html#t:MediaBag">MediaBag</a>)</li><li class="src short"><a href="#v:readMarkdown">readMarkdown</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readCommonMark">readCommonMark</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readMediaWiki">readMediaWiki</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readRST">readRST</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readOrg">readOrg</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readLaTeX">readLaTeX</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readHtml">readHtml</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readTextile">readTextile</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readDocBook">readDocBook</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readOPML">readOPML</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readHaddock">readHaddock</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readNative">readNative</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readJSON">readJSON</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readTWiki">readTWiki</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readTxt2Tags">readTxt2Tags</a> :: <a href="Text-Pandoc-Readers-Txt2Tags.html#t:T2TMeta">T2TMeta</a> -&gt; <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readTxt2TagsNoMacros">readTxt2TagsNoMacros</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></li><li class="src short"><a href="#v:readEPUB">readEPUB</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> (<a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>, <a href="Text-Pandoc-MediaBag.html#t:MediaBag">MediaBag</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:Writer">Writer</a><ul class="subs"><li>= <a href="#v:PureStringWriter">PureStringWriter</a> (<a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>)</li><li>| <a href="#v:IOStringWriter">IOStringWriter</a> (<a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>)</li><li>| <a href="#v:IOByteStringWriter">IOByteStringWriter</a> (<a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)</li></ul></li><li class="src short"><a href="#v:writeNative">writeNative</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeJSON">writeJSON</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeMarkdown">writeMarkdown</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writePlain">writePlain</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeRST">writeRST</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeLaTeX">writeLaTeX</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeConTeXt">writeConTeXt</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeTexinfo">writeTexinfo</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeHtml">writeHtml</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/libghc-blaze-html-doc/html/Text-Blaze-Html.html#t:Html">Html</a></li><li class="src short"><a href="#v:writeHtmlString">writeHtmlString</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeICML">writeICML</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeDocbook">writeDocbook</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeOPML">writeOPML</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeOpenDocument">writeOpenDocument</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeMan">writeMan</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeMediaWiki">writeMediaWiki</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeDokuWiki">writeDokuWiki</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeZimWiki">writeZimWiki</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeTextile">writeTextile</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeRTF">writeRTF</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeODT">writeODT</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:writeDocx">writeDocx</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:writeEPUB">writeEPUB</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:writeFB2">writeFB2</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeOrg">writeOrg</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeAsciiDoc">writeAsciiDoc</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeHaddock">writeHaddock</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeCommonMark">writeCommonMark</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeCustom">writeCustom</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:writeTEI">writeTEI</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li><li class="src short">module <a href="Text-Pandoc-Templates.html">Text.Pandoc.Templates</a></li><li class="src short"><a href="#v:getReader">getReader</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="Text-Pandoc.html#t:Reader">Reader</a></li><li class="src short"><a href="#v:getWriter">getWriter</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="Text-Pandoc.html#t:Writer">Writer</a></li><li class="src short"><a href="#v:getDefaultExtensions">getDefaultExtensions</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Set.html#t:Set">Set</a> <a href="Text-Pandoc-Options.html#t:Extension">Extension</a></li><li class="src short"><span class="keyword">class</span> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-JSON.html#t:ToJSONFilter">ToJSONFilter</a> a =&gt; <a href="#t:ToJsonFilter">ToJsonFilter</a> a <span class="keyword">where</span><ul class="subs"></ul></li><li class="src short"><a href="#v:pandocVersion">pandocVersion</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1 id="g:1">Definitions</h1><div class="top"><p class="src">module <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html">Text.Pandoc.Definition</a></p></div><h1 id="g:2">Generics</h1><div class="top"><p class="src">module <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Generic.html">Text.Pandoc.Generic</a></p></div><h1 id="g:3">Options</h1><div class="top"><p class="src">module <a href="Text-Pandoc-Options.html">Text.Pandoc.Options</a></p></div><h1 id="g:4">Error handling</h1><div class="top"><p class="src">module <a href="Text-Pandoc-Error.html">Text.Pandoc.Error</a></p></div><h1 id="g:5">Lists of readers and writers</h1><div class="top"><p class="src"><a id="v:readers" class="def">readers</a> :: [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="Text-Pandoc.html#t:Reader">Reader</a>)] <a href="src/Text-Pandoc.html#readers" class="link">Source</a> <a href="#v:readers" class="selflink">#</a></p><div class="doc"><p>Association list of formats and readers.</p></div></div><div class="top"><p class="src"><a id="v:writers" class="def">writers</a> :: [(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>, <a href="Text-Pandoc.html#t:Writer">Writer</a>)] <a href="src/Text-Pandoc.html#writers" class="link">Source</a> <a href="#v:writers" class="selflink">#</a></p><div class="doc"><p>Association list of formats and writers.</p></div></div><h1 id="g:6">Readers: converting <em>to</em> Pandoc format</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Reader" class="def">Reader</a> <a href="src/Text-Pandoc.html#Reader" class="link">Source</a> <a href="#t:Reader" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:StringReader" class="def">StringReader</a> (<a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>))</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:ByteStringReader" class="def">ByteStringReader</a> (<a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> (<a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>, <a href="Text-Pandoc-MediaBag.html#t:MediaBag">MediaBag</a>)))</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a id="v:mkStringReader" class="def">mkStringReader</a> :: (<a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>) -&gt; <a href="Text-Pandoc.html#t:Reader">Reader</a> <a href="src/Text-Pandoc.html#mkStringReader" class="link">Source</a> <a href="#v:mkStringReader" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:readDocx" class="def">readDocx</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> (<a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>, <a href="Text-Pandoc-MediaBag.html#t:MediaBag">MediaBag</a>) <a href="src/Text-Pandoc-Readers-Docx.html#readDocx" class="link">Source</a> <a href="#v:readDocx" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:readOdt" class="def">readOdt</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> (<a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>, <a href="Text-Pandoc-MediaBag.html#t:MediaBag">MediaBag</a>) <a href="src/Text-Pandoc-Readers-Odt.html#readOdt" class="link">Source</a> <a href="#v:readOdt" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:readMarkdown" class="def">readMarkdown</a> <a href="src/Text-Pandoc-Readers-Markdown.html#readMarkdown" class="link">Source</a> <a href="#v:readMarkdown" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a></td><td class="doc"><p>Reader options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to parse (assuming <code>'\n'</code> line endings)</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Read markdown from an input string and return a Pandoc document.</p></div></div><div class="top"><p class="src"><a id="v:readCommonMark" class="def">readCommonMark</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> <a href="src/Text-Pandoc-Readers-CommonMark.html#readCommonMark" class="link">Source</a> <a href="#v:readCommonMark" class="selflink">#</a></p><div class="doc"><p>Parse a CommonMark formatted string into a <code><a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></code> structure.</p></div></div><div class="top"><p class="src"><a id="v:readMediaWiki" class="def">readMediaWiki</a> <a href="src/Text-Pandoc-Readers-MediaWiki.html#readMediaWiki" class="link">Source</a> <a href="#v:readMediaWiki" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a></td><td class="doc"><p>Reader options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to parse (assuming <code>'\n'</code> line endings)</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Read mediawiki from an input string and return a Pandoc document.</p></div></div><div class="top"><p class="src"><a id="v:readRST" class="def">readRST</a> <a href="src/Text-Pandoc-Readers-RST.html#readRST" class="link">Source</a> <a href="#v:readRST" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a></td><td class="doc"><p>Reader options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to parse (assuming <code>'\n'</code> line endings)</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Parse reStructuredText string and return Pandoc document.</p></div></div><div class="top"><p class="src"><a id="v:readOrg" class="def">readOrg</a> <a href="src/Text-Pandoc-Readers-Org.html#readOrg" class="link">Source</a> <a href="#v:readOrg" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a></td><td class="doc"><p>Reader options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to parse (assuming <code>'\n'</code> line endings)</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Parse org-mode string and return a Pandoc document.</p></div></div><div class="top"><p class="src"><a id="v:readLaTeX" class="def">readLaTeX</a> <a href="src/Text-Pandoc-Readers-LaTeX.html#readLaTeX" class="link">Source</a> <a href="#v:readLaTeX" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a></td><td class="doc"><p>Reader options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to parse (assumes <code>'\n'</code> line endings)</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Parse LaTeX from string and return <code><a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></code> document.</p></div></div><div class="top"><p class="src"><a id="v:readHtml" class="def">readHtml</a> <a href="src/Text-Pandoc-Readers-HTML.html#readHtml" class="link">Source</a> <a href="#v:readHtml" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a></td><td class="doc"><p>Reader options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to parse (assumes <code>'\n'</code> line endings)</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Convert HTML-formatted string to <code><a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></code> document.</p></div></div><div class="top"><p class="src"><a id="v:readTextile" class="def">readTextile</a> <a href="src/Text-Pandoc-Readers-Textile.html#readTextile" class="link">Source</a> <a href="#v:readTextile" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a></td><td class="doc"><p>Reader options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to parse (assuming <code>'\n'</code> line endings)</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Parse a Textile text and return a Pandoc document.</p></div></div><div class="top"><p class="src"><a id="v:readDocBook" class="def">readDocBook</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> <a href="src/Text-Pandoc-Readers-DocBook.html#readDocBook" class="link">Source</a> <a href="#v:readDocBook" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:readOPML" class="def">readOPML</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> <a href="src/Text-Pandoc-Readers-OPML.html#readOPML" class="link">Source</a> <a href="#v:readOPML" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:readHaddock" class="def">readHaddock</a> <a href="src/Text-Pandoc-Readers-Haddock.html#readHaddock" class="link">Source</a> <a href="#v:readHaddock" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a></td><td class="doc"><p>Reader options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to parse</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Parse Haddock markup and return a <code><a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></code> document.</p></div></div><div class="top"><p class="src"><a id="v:readNative" class="def">readNative</a> <a href="src/Text-Pandoc-Readers-Native.html#readNative" class="link">Source</a> <a href="#v:readNative" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to parse (assuming <code>'\n'</code> line endings)</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Read native formatted text and return a Pandoc document.
 The input may be a full pandoc document, a block list, a block,
 an inline list, or an inline.  Thus, for example,</p><pre>Str &quot;hi&quot;</pre><p>will be treated as if it were</p><pre>Pandoc nullMeta [Plain [Str &quot;hi&quot;]]</pre></div></div><div class="top"><p class="src"><a id="v:readJSON" class="def">readJSON</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> <a href="src/Text-Pandoc.html#readJSON" class="link">Source</a> <a href="#v:readJSON" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:readTWiki" class="def">readTWiki</a> <a href="src/Text-Pandoc-Readers-TWiki.html#readTWiki" class="link">Source</a> <a href="#v:readTWiki" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a></td><td class="doc"><p>Reader options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>String to parse (assuming <code>'\n'</code> line endings)</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Read twiki from an input string and return a Pandoc document.</p></div></div><div class="top"><p class="src"><a id="v:readTxt2Tags" class="def">readTxt2Tags</a> :: <a href="Text-Pandoc-Readers-Txt2Tags.html#t:T2TMeta">T2TMeta</a> -&gt; <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> <a href="src/Text-Pandoc-Readers-Txt2Tags.html#readTxt2Tags" class="link">Source</a> <a href="#v:readTxt2Tags" class="selflink">#</a></p><div class="doc"><p>Read Txt2Tags from an input string returning a Pandoc document</p></div></div><div class="top"><p class="src"><a id="v:readTxt2TagsNoMacros" class="def">readTxt2TagsNoMacros</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> <a href="src/Text-Pandoc-Readers-Txt2Tags.html#readTxt2TagsNoMacros" class="link">Source</a> <a href="#v:readTxt2TagsNoMacros" class="selflink">#</a></p><div class="doc"><p>Read Txt2Tags (ignoring all macros) from an input string returning
 a Pandoc document</p></div></div><div class="top"><p class="src"><a id="v:readEPUB" class="def">readEPUB</a> :: <a href="Text-Pandoc-Options.html#t:ReaderOptions">ReaderOptions</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="Text-Pandoc-Error.html#t:PandocError">PandocError</a> (<a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a>, <a href="Text-Pandoc-MediaBag.html#t:MediaBag">MediaBag</a>) <a href="src/Text-Pandoc-Readers-EPUB.html#readEPUB" class="link">Source</a> <a href="#v:readEPUB" class="selflink">#</a></p></div><h1 id="g:7">Writers: converting <em>from</em> Pandoc format</h1><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:Writer" class="def">Writer</a> <a href="src/Text-Pandoc.html#Writer" class="link">Source</a> <a href="#t:Writer" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:PureStringWriter" class="def">PureStringWriter</a> (<a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:IOStringWriter" class="def">IOStringWriter</a> (<a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a>)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a id="v:IOByteStringWriter" class="def">IOByteStringWriter</a> (<a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a id="v:writeNative" class="def">writeNative</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-Native.html#writeNative" class="link">Source</a> <a href="#v:writeNative" class="selflink">#</a></p><div class="doc"><p>Prettyprint Pandoc document.</p></div></div><div class="top"><p class="src"><a id="v:writeJSON" class="def">writeJSON</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc.html#writeJSON" class="link">Source</a> <a href="#v:writeJSON" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:writeMarkdown" class="def">writeMarkdown</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-Markdown.html#writeMarkdown" class="link">Source</a> <a href="#v:writeMarkdown" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to Markdown.</p></div></div><div class="top"><p class="src"><a id="v:writePlain" class="def">writePlain</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-Markdown.html#writePlain" class="link">Source</a> <a href="#v:writePlain" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to plain text (like markdown, but without links,
 pictures, or inline formatting).</p></div></div><div class="top"><p class="src"><a id="v:writeRST" class="def">writeRST</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-RST.html#writeRST" class="link">Source</a> <a href="#v:writeRST" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to RST.</p></div></div><div class="top"><p class="src"><a id="v:writeLaTeX" class="def">writeLaTeX</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-LaTeX.html#writeLaTeX" class="link">Source</a> <a href="#v:writeLaTeX" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to LaTeX.</p></div></div><div class="top"><p class="src"><a id="v:writeConTeXt" class="def">writeConTeXt</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-ConTeXt.html#writeConTeXt" class="link">Source</a> <a href="#v:writeConTeXt" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to ConTeXt.</p></div></div><div class="top"><p class="src"><a id="v:writeTexinfo" class="def">writeTexinfo</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-Texinfo.html#writeTexinfo" class="link">Source</a> <a href="#v:writeTexinfo" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to Texinfo.</p></div></div><div class="top"><p class="src"><a id="v:writeHtml" class="def">writeHtml</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/libghc-blaze-html-doc/html/Text-Blaze-Html.html#t:Html">Html</a> <a href="src/Text-Pandoc-Writers-HTML.html#writeHtml" class="link">Source</a> <a href="#v:writeHtml" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc document to Html structure.</p></div></div><div class="top"><p class="src"><a id="v:writeHtmlString" class="def">writeHtmlString</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-HTML.html#writeHtmlString" class="link">Source</a> <a href="#v:writeHtmlString" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc document to Html string.</p></div></div><div class="top"><p class="src"><a id="v:writeICML" class="def">writeICML</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-ICML.html#writeICML" class="link">Source</a> <a href="#v:writeICML" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc document to string in ICML format.</p></div></div><div class="top"><p class="src"><a id="v:writeDocbook" class="def">writeDocbook</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-Docbook.html#writeDocbook" class="link">Source</a> <a href="#v:writeDocbook" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc document to string in Docbook format.</p></div></div><div class="top"><p class="src"><a id="v:writeOPML" class="def">writeOPML</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-OPML.html#writeOPML" class="link">Source</a> <a href="#v:writeOPML" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc document to string in OPML format.</p></div></div><div class="top"><p class="src"><a id="v:writeOpenDocument" class="def">writeOpenDocument</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-OpenDocument.html#writeOpenDocument" class="link">Source</a> <a href="#v:writeOpenDocument" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc document to string in OpenDocument format.</p></div></div><div class="top"><p class="src"><a id="v:writeMan" class="def">writeMan</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-Man.html#writeMan" class="link">Source</a> <a href="#v:writeMan" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to Man.</p></div></div><div class="top"><p class="src"><a id="v:writeMediaWiki" class="def">writeMediaWiki</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-MediaWiki.html#writeMediaWiki" class="link">Source</a> <a href="#v:writeMediaWiki" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to MediaWiki.</p></div></div><div class="top"><p class="src"><a id="v:writeDokuWiki" class="def">writeDokuWiki</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-DokuWiki.html#writeDokuWiki" class="link">Source</a> <a href="#v:writeDokuWiki" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to DokuWiki.</p></div></div><div class="top"><p class="src"><a id="v:writeZimWiki" class="def">writeZimWiki</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-ZimWiki.html#writeZimWiki" class="link">Source</a> <a href="#v:writeZimWiki" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to ZimWiki.</p></div></div><div class="top"><p class="src"><a id="v:writeTextile" class="def">writeTextile</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-Textile.html#writeTextile" class="link">Source</a> <a href="#v:writeTextile" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to Textile.</p></div></div><div class="top"><p class="src"><a id="v:writeRTF" class="def">writeRTF</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-RTF.html#writeRTF" class="link">Source</a> <a href="#v:writeRTF" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to a string in rich text format.</p></div></div><div class="top"><p class="src"><a id="v:writeODT" class="def">writeODT</a> <a href="src/Text-Pandoc-Writers-ODT.html#writeODT" class="link">Source</a> <a href="#v:writeODT" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a></td><td class="doc"><p>Writer options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc"><p>Document to convert</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Produce an ODT file from a Pandoc document.</p></div></div><div class="top"><p class="src"><a id="v:writeDocx" class="def">writeDocx</a> <a href="src/Text-Pandoc-Writers-Docx.html#writeDocx" class="link">Source</a> <a href="#v:writeDocx" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a></td><td class="doc"><p>Writer options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc"><p>Document to convert</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Produce an Docx file from a Pandoc document.</p></div></div><div class="top"><p class="src"><a id="v:writeEPUB" class="def">writeEPUB</a> <a href="src/Text-Pandoc-Writers-EPUB.html#writeEPUB" class="link">Source</a> <a href="#v:writeEPUB" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a></td><td class="doc"><p>Writer options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc"><p>Document to convert</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Produce an EPUB file from a Pandoc document.</p></div></div><div class="top"><p class="src"><a id="v:writeFB2" class="def">writeFB2</a> <a href="src/Text-Pandoc-Writers-FB2.html#writeFB2" class="link">Source</a> <a href="#v:writeFB2" class="selflink">#</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a></td><td class="doc"><p>conversion options</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></td><td class="doc"><p>document to convert</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a></td><td class="doc"><p>FictionBook2 document (not encoded yet)</p></td></tr></table></div><div class="doc"><p>Produce an FB2 document from a <code><a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a></code> document.</p></div></div><div class="top"><p class="src"><a id="v:writeOrg" class="def">writeOrg</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-Org.html#writeOrg" class="link">Source</a> <a href="#v:writeOrg" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to Org.</p></div></div><div class="top"><p class="src"><a id="v:writeAsciiDoc" class="def">writeAsciiDoc</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-AsciiDoc.html#writeAsciiDoc" class="link">Source</a> <a href="#v:writeAsciiDoc" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to AsciiDoc.</p></div></div><div class="top"><p class="src"><a id="v:writeHaddock" class="def">writeHaddock</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-Haddock.html#writeHaddock" class="link">Source</a> <a href="#v:writeHaddock" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to Haddock.</p></div></div><div class="top"><p class="src"><a id="v:writeCommonMark" class="def">writeCommonMark</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-CommonMark.html#writeCommonMark" class="link">Source</a> <a href="#v:writeCommonMark" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to CommonMark.</p></div></div><div class="top"><p class="src"><a id="v:writeCustom" class="def">writeCustom</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-Custom.html#writeCustom" class="link">Source</a> <a href="#v:writeCustom" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc to custom markup.</p></div></div><div class="top"><p class="src"><a id="v:writeTEI" class="def">writeTEI</a> :: <a href="Text-Pandoc-Options.html#t:WriterOptions">WriterOptions</a> -&gt; <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-Definition.html#t:Pandoc">Pandoc</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Writers-TEI.html#writeTEI" class="link">Source</a> <a href="#v:writeTEI" class="selflink">#</a></p><div class="doc"><p>Convert Pandoc document to string in Docbook format.</p></div></div><h1 id="g:8">Rendering templates and default templates</h1><div class="top"><p class="src">module <a href="Text-Pandoc-Templates.html">Text.Pandoc.Templates</a></p></div><h1 id="g:9">Miscellaneous</h1><div class="top"><p class="src"><a id="v:getReader" class="def">getReader</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="Text-Pandoc.html#t:Reader">Reader</a> <a href="src/Text-Pandoc.html#getReader" class="link">Source</a> <a href="#v:getReader" class="selflink">#</a></p><div class="doc"><p>Retrieve reader based on formatSpec (format+extensions).</p></div></div><div class="top"><p class="src"><a id="v:getWriter" class="def">getWriter</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="Text-Pandoc.html#t:Writer">Writer</a> <a href="src/Text-Pandoc.html#getWriter" class="link">Source</a> <a href="#v:getWriter" class="selflink">#</a></p><div class="doc"><p>Retrieve writer based on formatSpec (format+extensions).</p></div></div><div class="top"><p class="src"><a id="v:getDefaultExtensions" class="def">getDefaultExtensions</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/containers-0.5.7.1/Data-Set.html#t:Set">Set</a> <a href="Text-Pandoc-Options.html#t:Extension">Extension</a> <a href="src/Text-Pandoc.html#getDefaultExtensions" class="link">Source</a> <a href="#v:getDefaultExtensions" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-JSON.html#t:ToJSONFilter">ToJSONFilter</a> a =&gt; <a id="t:ToJsonFilter" class="def">ToJsonFilter</a> a <span class="keyword">where</span> <a href="src/Text-Pandoc.html#ToJsonFilter" class="link">Source</a> <a href="#t:ToJsonFilter" class="selflink">#</a></p><div class="doc"><p>Deprecated.  Use <code>toJSONFilter</code> from <code>Text.Pandoc.JSON</code> instead.</p></div><div class="subs methods"><p class="caption">Methods</p><p class="src"><a id="v:toJsonFilter" class="def">toJsonFilter</a> :: a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/System-IO.html#t:IO">IO</a> () <a href="src/Text-Pandoc.html#toJsonFilter" class="link">Source</a> <a href="#v:toJsonFilter" class="selflink">#</a></p><div class="doc"><div class="warning"><p>Deprecated: Use <code><a href="file:///usr/share/doc/libghc-pandoc-types-doc/html/Text-Pandoc-JSON.html#v:toJSONFilter">toJSONFilter</a></code> from <code><a href="Text-Pandoc.html#v:JSON">JSON</a></code> instead</p></div></div></div></div><div class="top"><p class="src"><a id="v:pandocVersion" class="def">pandocVersion</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.1.0/Data-String.html#t:String">String</a> <a href="src/Text-Pandoc-Shared.html#pandocVersion" class="link">Source</a> <a href="#v:pandocVersion" class="selflink">#</a></p><div class="doc"><p>Version number of pandoc library.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.3</p></div></body></html>