Feature master list:
- Table of contents
{{toc}}
?- ATX headers
- two-pass processing for consistent stream
- Ignore
#
in code blocks, quotes
- File transclusion
{{file path}}
?- Warn on missing or unreadable file
- Before ToC, to get all headers
- Recursion: warn, error, proceed?
- Specify or derive file type?
- Descend-only?
- Allow in code? Yes; how else to document? Escaping required.
Almost certainly not. Setext headers are basically a mistake best forgotten about.
The source file is something more than Markdown. It can be trivially kept Markdown, with no further support for ("illegitimate") extensions.
Is it more valuable to remain consistent with Markdown or to deliberately and obviously deviate?
The former produces a consistent result, the advantages of which need no qualification.
The latter does the opposite, which can be helpful to:
- emphasise that this is not plain Markdown; and
- prevent breaking existing compliant parsers.