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
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.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for mdx_spanner-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac2dd013ae4531e36eb4ac1f2a3da9678c44aaf287da7e75e8729fd85defd6f2 |
|
MD5 | 600beeeed9f4185ee102bb3a2a48e895 |
|
BLAKE2b-256 | 58a1e25963b010f36d227ab9eb6e51621e170d5cd32a4ba43f213f966e6c3277 |