pandoc-1.13: Conversion between markup formats

MaintainerMatthew Pickering <matthewtpickering@gmail.com>
Safe HaskellNone

Text.Pandoc.Readers.Txt2Tags

Description

Conversion of txt2tags formatted plain text to Pandoc document.

Synopsis

Documentation

readTxt2Tags :: T2TMeta -> ReaderOptions -> String -> PandocSource

Read Txt2Tags from an input string returning a Pandoc document

getT2TMeta :: [FilePath] -> FilePath -> IO T2TMetaSource

Get the meta information required by Txt2Tags macros

data T2TMeta Source

An object for the T2T macros meta information the contents of each field is simply substituted verbatim into the file

Constructors

T2TMeta 

Fields

date :: String

Current date

mtime :: String

Last modification time of infile

infile :: FilePath

Input file

outfile :: FilePath

Output file

readTxt2TagsNoMacros :: ReaderOptions -> String -> PandocSource

Read Txt2Tags (ignoring all macros) from an input string returning a Pandoc document