Releases: KEINOS/parsedown-extension_table-of-contents
Releases · KEINOS/parsedown-extension_table-of-contents
v1.0.2 Feat. [toc] tag/element work
- Feat.:
[toc]
tag (#2)- Now with
text()
method,[toc]
tag(s) will be replaced to parsed table of contents.
- Now with
- NOTE:
- The
body()
method omits parsing[toc]
tag. Usebody()
if you wish not to parse the[toc]
tag.
- The
v1.0.1
v1.0.0 (First major release)
- Feat composer install
- Request issue #4 by @sommer-gei Thanks!
- Add tests (powered by Travis CI)
- More sample usage
- Important:
- The main class name has been changed from
Extension()
toParsedownToC()
. - As a compatibility
Extension()
is aliased toParsedownToC()
but soon will be deprecated.
- The main class name has been changed from
v2018.04.07
Fix
- Fix for Parsedown v1.7.1
Add
- Add ToC output as JSON and Array
$string = $Parsedown->contentsList(); // As HTML string $array = $Parsedown->contentsList('array'); // As array $json = $Parsedown->contentsList('json'); // As json
See work on line: https://paiza.io/projects/0TghplxParLqyrP1tjAg6g
First official release
Fix
- Fix the first title is not h1, PR #1 by @yangxgkem Thanks!!