Popularity
7.9
Growing
Activity
0.0
Stable
17
6
15

Monthly Downloads: 137
Programming language: Haskell
License: GNU General Public License v2.0 only
Tags: Web     Yesod    
Latest version: v0.12.6.3

yesod-markdown alternatives and similar packages

Based on the "yesod" category.
Alternatively, view yesod-markdown alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of yesod-markdown or a related project?

Add another 'yesod' Package

README

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}
            |]

The default extensions are minimal, you can specify you're preferred extensions with markdownToHtmlWithExtensions:

import Text.Pandoc.Extensions (githubMarkdownExtensions)

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

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

For more information, see the haddocks.

Developing & Tests

stack setup
stack build --pedantic --test

[CHANGELOG](./CHANGELOG.md) | [LICENSE](./LICENSE)


*Note that all licence references and agreements mentioned in the yesod-markdown README section above are relevant to that project's source code only.