Structs§
- Autolink
Fact - One autolink recognised in source.
- Block
Checkpoint Fact - One top-level block checkpoint in canonical source coordinates.
- Code
Block - One fenced or indented code block.
- Document
- A parsed Markdown document.
- Extension
Options - Per-extension recognition toggles.
- Frontmatter
- Frontmatter at the document head. Carries the raw slice plus a tag for which delimiter the source used so the formatter can emit the same opening and closing markers.
- GfmOptions
- Recognition toggles for GitHub Flavored Markdown extensions.
- Heading
- One ATX or setext heading.
textis the trimmed text content (#markers and trailing whitespace stripped);raw_rangecovers the whole heading line(s). - Heading
Attr Site - An ATX heading attribute trailer.
- Heading
Attrs - Heading attribute trailer recognised on an ATX heading.
- Html
Block - One HTML block (
CommonMark§4.6). - Inline
Code - One inline code span.
textexcludes the surrounding backticks;raw_rangecovers them. - Inline
Delimiter Slot - Delimiter byte slots for one inline span.
- Inline
Html - One inline HTML tag (open, close, self-closing, comment, etc.) embedded in a paragraph.
- Inline
Link Destination Slot - An inline link or image destination byte slot.
- Line
Index - Maps byte offsets in a source string to 1-indexed (line, column)
pairs. Columns count Unicode codepoints, matching what
grep -nand most editors display. - LinkDef
- One link reference definition (
[label]: dest). - List
Group - A contiguous list at one indentation depth. Nested lists are
distinct
ListGroupentries. - List
Item - One item within a
ListGroup. - Markdown
Signature - A canonical Markdown event stream used for semantic comparison.
- Math
Parse Options - Math delimiter recognition policy.
- Math
Region - One recognised math region in source order.
- Myst
Options - Recognition toggles for
MyST-flavoured extensions. - Ordered
List Marker Site - One ordered list item marker.
- Pandoc
Options - Recognition toggles for
Pandoc-flavoured extensions. - Paragraph
Hard Break - Parse
Error - Markdown source could not be parsed safely.
- Parse
Options - Markdown recognition policy.
- Reference
Definition Site - A link-reference definition destination byte range.
- Render
Options - Rendering policy for source-to-HTML helpers.
- Structural
Span - A recognised block/container range.
- Suppression
- One inline suppression directive parsed from a Markdown HTML comment.
- Table
Cell Site - One table cell’s source range inside a raw table line.
- Table
RowSite - One raw table line.
- Table
Site - One GFM table source range and its source rows.
- Text
Slice - A borrowed slice of source bytes plus its absolute byte range. The minimal record every rule needs to emit a diagnostic.
- Unordered
List Marker Site - One unordered list item marker.
- Wrappable
Paragraph - A paragraph range with the inline facts needed by the wrap pass.
Enums§
- Allow
Scope - Autolink
Origin - Where an autolink came from.
- Frontmatter
Delimiter - Frontmatter fence style.
Yamluses---open and---/...close;Tomluses+++for both. - GfmAutolink
Policy - GFM extended-autolink recognition policy.
- Inline
Delimiter Kind - Inline delimiter kind.
- Line
Index Error - Math
Delimiter Set - Named math delimiter sets recognised by the Markdown parser.
- Math
Error - An unrecoverable shape the recogniser saw. The scanner never panics; it accumulates these and keeps scanning the rest of the document.
- Math
Span - Per-region classification produced by the scanner.
- Render
Profile - HTML spelling policy for
crate::render_html_with_render_options. - Structural
Kind - Structural owner kinds with source ranges.
- Suppression
Kind - Table
Align - Column alignment for a recognised GFM table.
Functions§
- contains_
rejected_ control_ chars - Input-boundary predicate: returns
truewhenscarries a C0 control byte that mdwright treats as evidence the input is not well-formed Markdown. - markdown_
signature - Build a semantic signature under explicit recognition policy.
- render_
html - Render Markdown to HTML using the same parser options the IR uses.
- render_
html_ with_ options - Render Markdown to HTML under explicit recognition options.
- render_
html_ with_ render_ options - Render Markdown to HTML under explicit recognition and render options.