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.
Equations
- Lean.Doc.MarkdownM.push txt = modify fun (x : Lean.Doc.MarkdownM.State) => Lean.Doc.MarkdownM.State.push✝ x txt
Instances For
Terminates the current block.
Equations
Instances For
Increases the indentation level by one.
Equations
- Lean.Doc.MarkdownM.indent = withReader fun (st : Lean.Doc.MarkdownM.Context) => { inEmph := st.inEmph, inBold := st.inBold, inLink := st.inLink, linePrefix := st.linePrefix ++ " " }
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
Equations
- One or more equations did not get rendered due to their size.
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.
Instances
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Doc.instToMarkdownInlineOfMarkdownInline = { toMarkdown := fun (inline : Lean.Doc.Inline i) => Lean.Doc.instToMarkdownInlineOfMarkdownInline._private_1 inline }
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.