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
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.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for mdx_spanner-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97e3822c48e5804939a316ddbc371f12e115cde1910c944e5cbebccb22a7eae8 |
|
MD5 | a19c53805d6d6c0e0846e72671d92c54 |
|
BLAKE2b-256 | 968d566197595e30e7e48f07e9841ccd348ba10fb47883b88a81468488b4f664 |