Module

Marked

Package
purescript-marked
Repository
thought2/purescript-marked

PureScript idiomatic wrapper around bindings to marked.js

#Blockquote Source

type Blockquote = { raw :: String, text :: String, tokens :: Array Token }

#Br Source

type Br = { raw :: String }

#Code Source

type Code = { codeBlockStyle :: CodeBlockStyle, lang :: Maybe String, raw :: String, text :: String }

#Codespan Source

type Codespan = { raw :: String, text :: String }

#Def Source

type Def = { href :: String, raw :: String, tag :: String, title :: String }

#Del Source

type Del = { raw :: String, text :: String, tokens :: Array Token }

#Em Source

type Em = { raw :: String, text :: String, tokens :: Array Token }

#Escape Source

type Escape = { raw :: String, text :: String }

#Heading Source

type Heading = { depth :: Int, raw :: String, text :: String, tokens :: Array Token }

#Hr Source

type Hr = { raw :: String }

#Html Source

type Html = { pre :: Boolean, raw :: String, text :: String }

#Image Source

type Image = { href :: String, raw :: String, text :: String, title :: Maybe String }

#LexerError Source

#LinkRef Source

type LinkRef = { href :: Maybe String, title :: Maybe String }

#List Source

type List = { items :: Array ListItem, loose :: Boolean, ordered :: Boolean, raw :: String, start :: Maybe Int }

#ListItem Source

type ListItem = { checked :: Boolean, loose :: Boolean, raw :: String, task :: Boolean, text :: String, tokens :: Array Token }

#Paragraph Source

type Paragraph = { pre :: Boolean, raw :: String, text :: String, tokens :: Array Token }

#Strong Source

type Strong = { raw :: String, text :: String, tokens :: Array Token }

#Table Source

type Table = { align :: Array TableAlign, header :: Array TableCell, raw :: String, rows :: Array (Array TableCell) }

#TableCell Source

type TableCell = { text :: String, tokens :: Array Token }

#Tag Source

type Tag = { inLink :: Boolean, inRawBlock :: Boolean, raw :: String, text :: String }

#Text Source

type Text = { raw :: String, text :: String, tokens :: Maybe (Array Token) }

#lexer Source

lexer :: String -> Either LexerError { links :: Map String LinkRef, tokens :: Array Token }