Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This branch is 98 commits ahead of ajdunlap:master

Failed to load latest commit information.
src/Yesod Re-structure project
.travis.yml Use a more comprehensive travis.yml
LICENSE Add build status to README
Setup.hs Scaffolding
yesod-markdown.cabal Add a test suite

Yesod markdown

Build Status

A small wrapper over pandoc's powerful Markdown -> Html support with usage tailored for Yesod.

This is a fork and continuation of a package originally by Alexander Dunlap.

Differences include:

  1. Updated to compile with newer dependencies
  2. Removed Yesod.Markdown.Macros
  3. Fixed and exported form field settings for Markdown fields
  4. Uses xss-sanitize by default and provides *Trusted functions to skip it


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

    defaultLayout do
            <div class="content">
Something went wrong with that request. Please try again.