Concepts
Markdown pipeline
Where markdown is produced.
Cloud adapters return vendor markdown. Only local runs the in-process pipeline:
- Fetch HTML
- Strip nav/footer/script/style/cookie chrome
- Prefer
article,main,[role=main], or the densest text block - Convert with turndown (ATX headings, fenced code)
- Collapse extra blank lines
onlyMainContent: false keeps the full body.