kennysoft / parsedown-tablespan
An extension of ParsedownExtra that adds support for rowspan and colspan.
v1.1.0
2022-02-13 06:37 UTC
Requires
- erusev/parsedown-extra: ^0.8.1
README
An extension of ParsedownExtra and Parsedown that adds support for rowspan and colspan.
Also, ParsedownExtended 1.1+ provides in the same way.
Installation
Composer
Install the composer package by running the following command:
composer require kennysoft/parsedown-tablespan
Manual
- Download the "Source code" from the latest release
- Include
Parsedown.php
,ParsedownExtra.php
, andParsedownTablespan.php
Example
$ParsedownTablespan = new ParsedownTablespan(); echo $ParsedownTablespan->text(' | > | > | Colspan | > | for thead | | ----- | :---------: | -----------: | ----------- | --------- | | Lorem | ipsum | dolor | sit | amet | | ^ | - | > | right align | . | | , | > | center align | > | 2x2 cell | | > | another 2x2 | + | > | ^ | | > | ^ | | | ! | ');
Prints:
(Since GitHub does not accept style attribute for cells, upper table is made with align
attribute which is not supported in HTML5, just to show what will be generated.)
License
Author
KENNYSOFT hyeonmin.park@kennysoft.kr