Configuration

The extension currently exposes a deliberately small configuration surface.

Options

Option

Type

Default

Meaning

longmd_strict

bool

False

Fail the build on unsupported nodes or unresolved references instead of degrading gracefully.

longmd_raw_html

bool

True

Pass raw HTML through to the Markdown body. When disabled, raw HTML is omitted from the body and represented only in diagnostics and sidecar records.

Example conf.py

project = "MyProject"
extensions = ["myst_parser", "sphinx_longmd"]

source_suffix = {
    ".rst": "restructuredtext",
    ".md": "markdown",
}

# Optional but useful in CI
longmd_strict = True

# Optional if you want cleaner Markdown output
longmd_raw_html = False