markdown-include
markdown-include copied to clipboard
Including CommonMark-tables with inheritHeadingDepth renders the table as text
In my mkdocs project, I am using markdown-include and mkdocs-material.
Let a top-level file be:
# Some heading
{!tables/Some_Table.md!}
And let table/Some_Table.md be:
The following table shows some data about whatever.
| Some first column | Some second column |
| ----------------- | ------------------ |
| Some text. | Some more text. |
- With inheritHeadingDepth being false, the generated output will be some nice looking HTML-table.
- With inheritHeadingDepth being true, the generated output will be the actual text, wrapped in <p> elements.
Used versions:
- mkdocs: 1.1.1
- mkdocs-material: 6.2.8
- markdown-include: 0.6.0
- python: 3.8