All notable changes to this project will be documented in this file. Updates should follow the Keep a CHANGELOG principles.
Environment::createCommonMarkEnvironment()
and Environment::createGFMEnvironment()
unordered_list_markers
configuration option (#408, #411)This release contains the same changes as 1.1.3:
Html5EntityDecoder
class (#387)Html5Entities
class - use Html5EntityDecoder
instead (#387)No changes were made since 1.0.0-rc1.
ReferenceMapInterface
from the ReferenceMap
classReferenceMapInterface
parameter to the Document
constructorReferenceMap
with ReferenceMapInterface
ReferenceMap::addReference()
no longer returns $this
"0"
wouldn't be rendered (#376)DocumentProcessorInterface
functionality in favor of event dispatching (#373)Delimiter
class final and extracted a new DelimiterInterface
Delimiter
methods:
getOrigDelims()
renamed to getOriginalLength()
getNumDelims()
renamed to getLength()
setNumDelims()
renamed to setLength()
DelimiterStack
ReferenceMap
ReferenceParser
ReferenceParser
into the Reference
sub-namespaceDelimiter
methods:
setCanOpen()
setCanClose()
setChar()
setIndex()
setInlineNode()
Delimiter
(setter methods now have no return values)DelimiterProcessorInterface::process()
will accept any type of AbstractStringContainer
now, not just Text
nodesDelimiter
constructor, getInlineNode()
, and setInlineNode()
no longer accept generic Node
elements - only AbstractStringContainer
ssafe
option (use html_input
and allow_unsafe_links
options instead)RegexHelper
constantsDocParser::getEnvironment()
(you should obtain it some other way)AbstractInlineContainer
(use AbstractInline
instead and make isContainer()
return true
)addDelimiterProcessor()
added to ConfigurableEnvironmentInterface
and Environment
AdjacentTextMerger::mergeTextNodesBetweenExclusive()
CommonMarkConveter::getEnvironment()
Configuration::set()
DocParserInterface
created from DocParser
ConfigurationInterface
created from Configuration
ReferenceInterface
created from Reference
Configuration
class:
getConfig()
renamed to get()
mergeConfig()
renamed to merge()
setConfig()
renamed to replace()
ConfigurationAwareInterface::setConfiguration()
to accept the new ConfigurationInterface
instead of the concrete classAdjoiningTextCollapser
class to AdjacentTextMerger
collapseTextNodes()
method with the new mergeChildNodes()
methodfinal
:
Configuration
DocParser
HtmlRenderer
InlineParserEngine
NodeWalker
Reference
private
:
DelimiterStack::findEarliest()
protected
methods in InlineParserEngine
@internal
ElementRendererInterface
now requires a public renderInline()
method; added this to HtmlRenderer
InlineParserEngine::parse()
to require an AbstractStringContainerBlock
instead of the generic Node
classCommonmarkConverter::VERSION
constantConverter
constructor now requires an instance of DocParserInterface
instead of the concrete DocParser
Emphasis
, Strong
, and AbstractWebResource
to directly extend AbstractInline
instead of the (now-deprecated) intermediary AbstractInlineContainer
classNode
s without parentsNodeWalkerEvent
not requiring a Node
via its constructorReference::normalizeReference()
improperly converting to uppercase instead of performing proper Unicode case-foldingenable_strong
is set to false
(it now works identically to enable_em
)DocParser::getEnvironment()
(you should obtain it some other way)AbstractInlineContainer
(use AbstractInline
instead and make isContainer()
return true
)addInlineProcessor()
from ConfigurableEnvironmentInterface
and Environment
getInlineProcessors()
from EnvironmentInterface
and Environment
EmphasisProcessor
InlineProcessorInterface
EmphasisParser
now that we have proper delimiter supportgetEncoding()
from ContextInterface
getEncoding()
, setEncoding()
, and $encoding
from Context
getEncoding()
and the second $encoding
constructor param from Cursor
DelimiterStack::getTop()
(no replacement)DelimiterStack::iterateByCharacters()
(use the new processDelimiters()
method instead)DelimiterStack::findMatchingOpener()
method