Highly-extensible PHP Markdown parser which fully supports the CommonMark and GFM specs.
BSD-3-CLAUSE License
Bot releases are hidden (Show)
Published by colinodell over 3 years ago
Please see https://commonmark.thephpleague.com/1.6/upgrading/ for important information about this release and the upcoming 2.0.0 version.
commonmark/enable_em
(currently enable_em
in 1.x)commonmark/enable_strong
(currently enable_strong
in 1.x)commonmark/use_asterisk
(currently use_asterisk
in 1.x)commonmark/use_underscore
(currently use_underscore
in 1.x)commonmark/unordered_list_markers
(currently unordered_list_markers
in 1.x)mentions/*/prefix
(currently mentions/*/symbol
in 1.x)mentions/*/pattern
(currently mentions/*/regex
in 1.x)max_nesting_level
(currently supports int
and float
values in 1.x; will only support int
in 2.0)MarkdownConverter
class for creating converters with custom environments; this replaces the previously-deprecated Converter
classRegexHelper::matchFirst()
methodConfiguration::exists()
methodmax_nesting_level
option now defaults to PHP_INT_MAX
instead of INF
Environment
into the constructors of CommonMarkConverter
and GithubFlavoredMarkdownConverter
; use MarkdownConverter
insteadConfigurableEnvironmentInterface::setConfig()
; use mergeConfig()
insteadConfigurableEnvironmentInterface::mergeConfig()
without any parametersConfiguration::get()
and EnvironmentInterface::getConfig()
without any parametersConfiguration::set()
without the second $value
parameterRegexHelper::matchAll()
; use RegexHelper::matchFirst()
insteadArrayCollection
class; will be marked final
in 2.0unordered_list_markers
configuration optionPublished by colinodell over 3 years ago
Published by colinodell almost 4 years ago
Published by colinodell about 4 years ago
Published by colinodell about 4 years ago
textarea
elements not being treated as a type 1 HTML block (like script
, style
, or pre
)Published by colinodell about 4 years ago
Published by colinodell over 4 years ago
Published by colinodell over 4 years ago
Published by colinodell over 4 years ago
UrlEncoder
utility (#509) or the Cursor
Published by colinodell over 4 years ago
AttributesExtension
based on https://github.com/webuni/commonmark-attributes-extension (#474)FootnoteExtension
based on https://github.com/rezozero/commonmark-ext-footnotes (#474)MentionExtension
to replace InlineMentionParser
with more flexibility and customizationTableOfContents
nodes anywhere in a document (given by a placeholder)Node
objectsrel
attributes set via the ExternalLink
extension (#476)heading_permalink/slug_normalizer
configuration option to allow custom slug generation (#460)heading_permalink/symbol
configuration option to replace the now deprecated heading_permalink/inner_contents
configuration option (#505)SlugNormalizer
and TextNormalizer
classes to make normalization reusable by extensions (#485)TableOfContentsGenerator
TableOfContentsGeneratorInterface
TableOfContentsPlaceholder
TableOfContentsPlaceholderParser
TableOfContentsPlaceholderRenderer
TableOfContents
class into a new Node
sub-namespace (with backward-compatibility)Reference
, only the ReferenceMap
CommonMarkConverter::VERSION
constant (#496)League\CommonMark\Extension\Autolink\InlineMentionParser
(use League\CommonMark\Extension\Mention\MentionParser
instead)League\CommonMark\Extension\HeadingPermalink\Slug
(use the classes under League\CommonMark\Normalizer
instead)League\CommonMark\Extension\TableOfContents\TableOfContents
(use the one in the new Node
sub-namespace instead)STYLE_
and NORMALIZE_
constants in TableOfContentsBuilder
(use the ones in TableOfContentsGenerator
instead)\League\CommonMark\Extension\HeadingPermalink\HeadingPermalinkRenderer::DEFAULT_INNER_CONTENTS
constant (#505)heading_permalink/inner_contents
configuration option in the HeadingPermalink
extension (use the new heading_permalink/symbol
configuration option instead) (#505)Published by colinodell over 4 years ago
Published by colinodell over 4 years ago
Published by colinodell over 4 years ago
Published by colinodell over 4 years ago
MarkdownConverterInterface
as a long-term replacement for ConverterInterface
(#439)DocumentPreParsedEvent
event (#427, #359, #399)ListBlock::TYPE_BULLET
constant as a replacement for ListBlock::TYPE_UNORDERED
MarkdownInput
class and MarkdownInputInterface
to handle pre-parsing and allow listeners to replace Markdown contentsListBlock
constants now use fully-lowercased values instead of titlecased valuesStaggeredDelimiterProcessor
returning from a void
functionConverter
class has been deprecated; use CommonMarkConverter
instead (#438, #439)ConverterInterface
has been deprecated; use MarkdownConverterInterface
instead (#438, #439)bin/commonmark
script has been deprecatedArrayCollection
have been deprecated:
add()
set()
get()
remove()
isEmpty()
contains()
indexOf()
containsKey()
replaceWith()
removeGaps()
ListBlock::TYPE_UNORDERED
constant has been deprecated, use ListBlock::TYPE_BULLET
insteadPublished by colinodell over 4 years ago
[$instance, 'method']
callable syntax (#440)Published by colinodell over 4 years ago
EnvironmentAwareInterface
or ConfigurationAwareInterface
(#423)Published by colinodell over 4 years ago
Published by colinodell over 4 years ago
Environment::createCommonMarkEnvironment()
and Environment::createGFMEnvironment()
Published by colinodell over 4 years ago
âšī¸ Do you use league/commonmark-ext*
packages? Those features are now included directly in this library! See #409 for details on making the switch.
unordered_list_markers
configuration option (#408, #411)Published by colinodell almost 5 years ago
This release contains the same changes as 1.1.3: