markdown

A dependency-free Markdown parser with configurable GFM extensions.

API Reference

Structs

struct Document

A Markdown document parsed into block nodes with recursively parsed inline content.

struct ListItem

A Markdown list item and its optional task-list state.

struct TableCell

A Markdown table cell containing parsed inline content.

Enums

enum TableAlignment

Controls how a Markdown table column is aligned when rendered.

enum Block

A block-level Markdown node.

enum Inline

An inline Markdown node after delimiter and escape processing.

enum GFMExtension

An individually selectable GitHub Flavored Markdown feature.

enum Extension

A family of optional Markdown syntax extensions.

Functions

func to_html(consume markdown: String, extensions: &[Extension]) -> String

Parses Markdown and renders escaped HTML without shifting heading levels.