Span table cols and rows in MkDocs
Project description
mdx_spanner
This package enables rowspan
and colspan
in markdown tables when using MkDocs.
Syntax
You can activate colspan
by putting only ~~
in a cell. This will merge the cell with the cell in the previous column.
You can activate rowspan
by putting __
in a cell. This will merge the cell with the cell in the previous row. If the cell in previous row is empty it will continue to merge until it finds a non-empty cell.
Sample:
| Header 1 | Header 2 | Header 3 |
| ---------| -------- | -------- |
| Value 1 | ~~ | Value 2 |
| | ~~ | Value 3 |
|_ _| ~~ | Value 5 |
| Value 6 | Value 7 | Value 8 |
This should result in the following table:
+----------+----------+----------+
| Header 1 | Header 2 | Header 3 |
+----------+----------+----------+
| Value 1 | Value 2 |
| +----------+
| | Value 3 |
| +----------+
| | Value 5 |
+----------+----------+----------+
| Value 6 | Value 7 | Value 8 |
+----------+----------+----------+
Install
$ pip install mdx_spanner
Usage
After installing the extension you can add it in the mkdocs.yml
file:
site_name: ...
nav:
...
theme:
...
markdown_extensions:
- mdx_spanner
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mdx_spanner-0.0.3.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for mdx_spanner-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b5b172ccf33e2e1658386acad6ca1d94238b341d2b47847bf8156f41458b834 |
|
MD5 | 7c6932f9c79384abb138d7e3d13bd5c0 |
|
BLAKE2b-256 | 648502a5665955091e1634c06aee830404ea5868d1784a5690287954347ca1aa |