pandoc-2.11: Conversion between markup formats

CopyrightCopyright (C) 2006-2020 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Readers.Markdown

Description

Conversion of markdown-formatted plain text to Pandoc document.

Synopsis

Documentation

readMarkdown Source #

Arguments

:: PandocMonad m 
=> ReaderOptions

Reader options

-> Text

String to parse (assuming '\n' line endings)

-> m Pandoc 

Read markdown from an input string and return a Pandoc document.

yamlToMeta :: PandocMonad m => ReaderOptions -> Maybe FilePath -> ByteString -> m Meta Source #

Read a YAML string and convert it to pandoc metadata. String scalars in the YAML are parsed as Markdown.

yamlToRefs :: PandocMonad m => (Text -> Bool) -> ReaderOptions -> Maybe FilePath -> ByteString -> m [MetaValue] Source #

Read a YAML string and extract references from the references field, filter using an id predicate and parsing fields as Markdown.