heist-0.8.0: An (x)html templating system

Safe HaskellNone

Text.Templating.Heist.Splices.Markdown

Description

The "markdown" splice formats markdown content as HTML and inserts it into the document.

If the file attribute is present the contents of the tag is ignored and the file specified is converted to HTML.

Otherwise the non-markup children of the tag are processed as markdown and converted to HTML.

This splice requires that the "pandoc" executable is in your path.

Synopsis

Documentation

markdownTag :: TextSource

Default name for the markdown splice.

markdownSplice :: MonadIO m => Splice mSource

Implementation of the markdown splice.

readProcessWithExitCode'Source

Arguments

:: FilePath

command to run

-> [String]

any arguments

-> ByteString

standard input

-> IO (ExitCode, ByteString, ByteString)

exitcode, stdout, stderr