Skip to content

Including CommonMark-tables with inheritHeadingDepth renders the table as text #29

Description

@sepulzera

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions