yesod-markdown

Tools for using markdown in a yesod application

http://github.com/pbrisbin/yesod-markdown

Version on this page:0.12.2
LTS Haskell 22.17:0.12.6.13
Stackage Nightly 2024-04-19:0.12.6.13
Latest on Hackage:0.12.6.13

See all snapshots yesod-markdown appears in

GPL-2.0-only licensed by Alexander Dunlap, Patrick Brisbin
Maintained by Patrick Brisbin
This version can be pinned in stack with:yesod-markdown-0.12.2@sha256:01d198a4d5cd9da0f547c62afcf8311a55a6191a05fa25bf2c9368a7ee2164e7,1722

Module documentation for 0.12.2

Yesod Markdown

A small wrapper over Pandoc’s powerful Markdown -> Html support, with usage tailored for Yesod.

Usage

getPageR :: FilePath -> Handler RepHtml
getPageR fp = do
    content <- liftIO $ fmap markdownToHtml (markdownFromFile fp)

    defaultLayout do
        [shamlet|
            <div class="content">
                #{content}
            |]

For more information, see the haddocks.

Developing & Tests

stack setup
stack build --pedantic --test

CHANGELOG | LICENSE