Configuration¶
The extension currently exposes a deliberately small configuration surface.
Options¶
Option |
Type |
Default |
Meaning |
|---|---|---|---|
|
|
|
Fail the build on unsupported nodes or unresolved references instead of degrading gracefully. |
|
|
|
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
Recommended defaults¶
For local use:
keep
longmd_strict = Falsekeep
longmd_raw_html = Trueunless your downstream consumer needs cleaner Markdown
For CI or release builds:
enable strict mode to catch custom-node regressions and unresolved references early