pandoc-2.14.2: Conversion between markup formats
CopyrightCopyright (C) 2011-2021 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Readers.Native

Description

Conversion of a string representation of a pandoc type (Pandoc, [Block], Block, [Inline], or Inline) to a Pandoc document.

Synopsis

Documentation

readNative :: (PandocMonad m, ToSources a) => ReaderOptions -> a -> m Pandoc Source #

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,

Str "hi"

will be treated as if it were

Pandoc nullMeta [Plain [Str "hi"]]