From 15bef15713a64216b57ca267cec2b39db65fa7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar=20Rubio?= Date: Mon, 29 Jan 2024 22:13:18 +0100 Subject: [PATCH] Add example including table as list item --- examples/table-as-list-item/docs/index.md | 22 ++++++++++++++++++++++ examples/table-as-list-item/docs/table.md | 3 +++ examples/table-as-list-item/mkdocs.yml | 3 +++ 3 files changed, 28 insertions(+) create mode 100644 examples/table-as-list-item/docs/index.md create mode 100644 examples/table-as-list-item/docs/table.md create mode 100644 examples/table-as-list-item/mkdocs.yml diff --git a/examples/table-as-list-item/docs/index.md b/examples/table-as-list-item/docs/index.md new file mode 100644 index 0000000..f76c54d --- /dev/null +++ b/examples/table-as-list-item/docs/index.md @@ -0,0 +1,22 @@ +# Table included as part of a list item + +1. A list entry +1. Item with table + + {% + include-markdown "./table.md" + comments=false + %} + +1. Another list entry + +## Expected output + +1. A list entry +1. Item with table + + | A | B | + | --- | --- | + | foo | bar | + +1. Another list entry diff --git a/examples/table-as-list-item/docs/table.md b/examples/table-as-list-item/docs/table.md new file mode 100644 index 0000000..1a39e31 --- /dev/null +++ b/examples/table-as-list-item/docs/table.md @@ -0,0 +1,3 @@ +| A | B | +| --- | --- | +| foo | bar | diff --git a/examples/table-as-list-item/mkdocs.yml b/examples/table-as-list-item/mkdocs.yml new file mode 100644 index 0000000..0f97266 --- /dev/null +++ b/examples/table-as-list-item/mkdocs.yml @@ -0,0 +1,3 @@ +site_name: Foo +plugins: + - include-markdown