Added
- Added new
AttributesExtensionbased on https://github.com/webuni/commonmark-attributes-extension (#474) - Added new
FootnoteExtensionbased on https://github.com/rezozero/commonmark-ext-footnotes (#474) - Added new
MentionExtensionto replaceInlineMentionParserwith more flexibility and customization - Added the ability to render
TableOfContentsnodes anywhere in a document (given by a placeholder) - Added the ability to properly clone
Nodeobjects - Added options to customize the value of
relattributes set via theExternalLinkextension (#476) - Added a new
heading_permalink/slug_normalizerconfiguration option to allow custom slug generation (#460) - Added a new
heading_permalink/symbolconfiguration option to replace the now deprecatedheading_permalink/inner_contentsconfiguration option (#505) - Added
SlugNormalizerandTextNormalizerclasses to make normalization reusable by extensions (#485) - Added new classes:
TableOfContentsGeneratorTableOfContentsGeneratorInterfaceTableOfContentsPlaceholderTableOfContentsPlaceholderParserTableOfContentsPlaceholderRenderer
Changed
- "Moved" the
TableOfContentsclass into a newNodesub-namespace (with backward-compatibility) - Reference labels are now generated and stored in lower-case instead of upper-case
- Reference labels are no longer normalized inside the
Reference, only theReferenceMap
Fixed
- Fixed reference label case folding polyfill not being consistent between different PHP versions
Deprecated
- Deprecated the
CommonMarkConverter::VERSIONconstant (#496) - Deprecated
League\CommonMark\Extension\Autolink\InlineMentionParser(useLeague\CommonMark\Extension\Mention\MentionParserinstead) - Deprecated everything under
League\CommonMark\Extension\HeadingPermalink\Slug(use the classes underLeague\CommonMark\Normalizerinstead) - Deprecated
League\CommonMark\Extension\TableOfContents\TableOfContents(use the one in the newNodesub-namespace instead) - Deprecated the
STYLE_andNORMALIZE_constants inTableOfContentsBuilder(use the ones inTableOfContentsGeneratorinstead) - Deprecated the
\League\CommonMark\Extension\HeadingPermalink\HeadingPermalinkRenderer::DEFAULT_INNER_CONTENTSconstant (#505) - Deprecated the
heading_permalink/inner_contentsconfiguration option in theHeadingPermalinkextension (use the newheading_permalink/symbolconfiguration option instead) (#505)