markdown-include icon indicating copy to clipboard operation
markdown-include copied to clipboard

Including CommonMark-tables with inheritHeadingDepth renders the table as text

Open sepulzera opened this issue 4 years ago • 0 comments

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

sepulzera avatar Feb 12 '21 14:02 sepulzera