Releases: KEINOS/parsedown-extension_table-of-contents
Releases · KEINOS/parsedown-extension_table-of-contents
v1.2.0 Adapt PHP8.2
What's Changed
- Fix: Deprecated string interpolation since PHP 8.2 by @Endy-c in #25 Thanks!
- Chore: Add contributors and the link to the license.
Full Changelog: v1.1.2...v1.2.0
v1.1.2 Feat. User Defined ToC Markdown Tag
v1.1.1 Feat. Parsedown Extra's Anchor identifiers
v1.1.0 Feat. compatibility with Parsedown Extra
Feature
- Compatible with Parsedown Extra
- Versioning
- You can get the ToC extension's version by
self::version
- You can get the ToC extension's version by
Breaking changes
- Deprecation of class
Extension
- As of v1.1.0 the class
Extension
, the alias ofParsedownToC
, will not be available.
- As of v1.1.0 the class
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!!