Skip to content

Include a table as part of a list item #192

@panicseal

Description

@panicseal

Hello, thank you for this great mkdocs plugin!

I'm trying to include a table in different contexts, and one of them is a list.
This breaks the table rendering.

file tbl.md

| A   | B   |
|-----|-----|
| foo | bar | 

file main.md

### Table included as part of a list item:
1. A list entry
1. Item with table

    {%
      include-markdown "./tbl.md"
    %}

1. Another list entry

### Expected output:
1. A list entry
1. Item with table

    | A   | B   |
    |-----|-----|
    | foo | bar |

1. Another list entry

See attached screenshot with rendered result:
firefox_2024-01-29_14-29-16

I hope this can be fixed / implemented.
Thank you very much for your time and effort to provide this plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions