Skip to content

1.5.0

Compare
Choose a tag to compare
@colinodell colinodell released this 21 Jun 20:57
· 39 commits to 1.5 since this release
fc33ca1

Added

  • Added new AttributesExtension based on https://github.com/webuni/commonmark-attributes-extension (#474)
  • Added new FootnoteExtension based on https://github.com/rezozero/commonmark-ext-footnotes (#474)
  • Added new MentionExtension to replace InlineMentionParser with more flexibility and customization
  • Added the ability to render TableOfContents nodes anywhere in a document (given by a placeholder)
  • Added the ability to properly clone Node objects
  • Added options to customize the value of rel attributes set via the ExternalLink extension (#476)
  • Added a new heading_permalink/slug_normalizer configuration option to allow custom slug generation (#460)
  • Added a new heading_permalink/symbol configuration option to replace the now deprecated heading_permalink/inner_contents configuration option (#505)
  • Added SlugNormalizer and TextNormalizer classes to make normalization reusable by extensions (#485)
  • Added new classes:
    • TableOfContentsGenerator
    • TableOfContentsGeneratorInterface
    • TableOfContentsPlaceholder
    • TableOfContentsPlaceholderParser
    • TableOfContentsPlaceholderRenderer

Changed

  • "Moved" the TableOfContents class into a new Node sub-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 the ReferenceMap

Fixed

  • Fixed reference label case folding polyfill not being consistent between different PHP versions

Deprecated

  • Deprecated the CommonMarkConverter::VERSION constant (#496)
  • Deprecated League\CommonMark\Extension\Autolink\InlineMentionParser (use League\CommonMark\Extension\Mention\MentionParser instead)
  • Deprecated everything under League\CommonMark\Extension\HeadingPermalink\Slug (use the classes under League\CommonMark\Normalizer instead)
  • Deprecated League\CommonMark\Extension\TableOfContents\TableOfContents (use the one in the new Node sub-namespace instead)
  • Deprecated the STYLE_ and NORMALIZE_ constants in TableOfContentsBuilder (use the ones in TableOfContentsGenerator instead)
  • Deprecated the \League\CommonMark\Extension\HeadingPermalink\HeadingPermalinkRenderer::DEFAULT_INNER_CONTENTS constant (#505)
  • Deprecated the heading_permalink/inner_contents configuration option in the HeadingPermalink extension (use the new heading_permalink/symbol configuration option instead) (#505)