Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Syntax extensions for the commonmark library. Usage example:
{-# LANGUAGE ScopedTypeVariables #-} import Commonmark import Commonmark.Extensions import Data.Text.IO as TIO import Data.Text.Lazy.IO as TLIO main :: IO () main = do let customSyntax = (mathSpec <> smartPunctuationSpec <> defaultSyntaxSpec) inp <- TIO.getContents res <- commonmarkWith customSyntax "stdin" inp case res of Left e -> error (show e) Right (html :: Html ()) -> TLIO.putStr $ renderHtml html
Synopsis
- module Commonmark.Extensions.Smart
- module Commonmark.Extensions.HardLineBreaks
- module Commonmark.Extensions.Strikethrough
- module Commonmark.Extensions.Superscript
- module Commonmark.Extensions.Subscript
- module Commonmark.Extensions.PipeTable
- module Commonmark.Extensions.Math
- module Commonmark.Extensions.Emoji
- module Commonmark.Extensions.Autolink
- module Commonmark.Extensions.Footnote
- module Commonmark.Extensions.DefinitionList
- module Commonmark.Extensions.Attributes
- module Commonmark.Extensions.AutoIdentifiers
- module Commonmark.Extensions.FancyList
- module Commonmark.Extensions.TaskList
- module Commonmark.Extensions.ImplicitHeadingReferences
- module Commonmark.Extensions.Wikilinks
- module Commonmark.Extensions.Alerts
- module Commonmark.Extensions.RebaseRelativePaths
- gfmExtensions :: (Monad m, Typeable m, Typeable il, Typeable bl, IsBlock il bl, IsInline il, HasFootnote il bl, HasEmoji il, HasStrikethrough il, HasPipeTable il bl, HasTaskList il bl, ToPlainText il, HasAlerts il bl) => SyntaxSpec m il bl
Documentation
module Commonmark.Extensions.Smart
module Commonmark.Extensions.Math
module Commonmark.Extensions.Emoji
module Commonmark.Extensions.Alerts
gfmExtensions :: (Monad m, Typeable m, Typeable il, Typeable bl, IsBlock il bl, IsInline il, HasFootnote il bl, HasEmoji il, HasStrikethrough il, HasPipeTable il bl, HasTaskList il bl, ToPlainText il, HasAlerts il bl) => SyntaxSpec m il bl Source #
Standard extensions for GitHub-flavored Markdown.