packages feed

hyakko 0.2.0 → 0.2.1

raw patch · 2 files changed

+18/−1 lines, 2 files

Files

hyakko.cabal view
@@ -1,5 +1,5 @@ name:             hyakko-version:          0.2.0+version:          0.2.1 cabal-version:    >= 1.6 build-type:       Simple license:          MIT@@ -20,6 +20,8 @@                   -- HTML template and CSS sytle                   resources/hyakko.html                   resources/hyakko.css+extra-source-files:+                  src/Text/Markdown.hs  source-repository head   type:           git
+ src/Text/Markdown.hs view
@@ -0,0 +1,15 @@+module Text.Markdown (toHTML) where++import Text.Pandoc+  ( readMarkdown+  , writeHtmlString+  , defaultParserState+  , defaultWriterOptions+  )++-- Function for translating Markdown to HTML since `Pandoc` has several+-- different generators for other markup languages.+toHTML :: String -> String+toHTML = writeHtmlString defaultWriterOptions . parse+  where parse = readMarkdown defaultParserState+{-# INLINE toHTML #-}