The surrounding context of Markdown that's being generated, in order to prevent nestings that Markdown doesn't allow.
- inEmph : Bool
The current code is inside emphasis.
- inBold : Bool
The current code is inside strong emphasis.
- inLink : Bool
The current code is inside a link.
- linePrefix : String
The prefix that should be added to each line (typically for indentation).
Instances For
The monad for generating Markdown output.
Instances For
Adds a string to the current Markdown output.
Instances For
Checks whether the current output ends with the given string.
Instances For
Increases the indentation level by one.
Instances For
A way to transform inline elements extended with i into Markdown.
A function that transforms an
iand its contents into Markdown, given a way to transform the contents.
Instances
A way to transform block elements extended with b that contain inline elements extended with i
into Markdown.
- toMarkdown : (Inline i → MarkdownM Unit) → (Block i b → MarkdownM Unit) → b → Array (Block i b) → MarkdownM Unit
A function that transforms a
band its contents into Markdown, given a way to transform the contents.