yesod-markdown-0.7.1: Tools for using markdown in a yesod application

Safe HaskellNone

Yesod.Markdown

Contents

Description

Rewrite/simplification of yesod-markdown written by ajdunlap.

Forked from https://github.com/ajdunlap/yesod-markdown.

Synopsis

Documentation

Wrappers

markdownToHtmlTrusted :: Markdown -> HtmlSource

No HTML sanitization

markdownFromFile :: FilePath -> IO MarkdownSource

Returns the empty string if the file does not exist

Conversions

Option sets

yesodDefaultWriterOptions :: WriterOptionsSource

Defaults plus Html5, minus WrapText

yesodDefaultReaderOptions :: ReaderOptionsSource

Defaults plus Smart and ParseRaw

Form helper