Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 621 | Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
# Change Log
2
All notable changes to this project will be documented in this file.
3
Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
4
 
5
**Upgrading from 1.x?** See <https://commonmark.thephpleague.com/2.0/upgrading/> for additional information.
6
 
7
## [Unreleased][unreleased]
8
 
9
## [2.3.8] - 2022-12-10
10
 
11
### Fixed
12
 
13
- Fixed parsing issues when `mb_internal_encoding()` is set to something other than `UTF-8` (#951)
14
 
15
## [2.3.7] - 2022-11-03
16
 
17
### Fixed
18
 
19
- Fixed `TaskListItemMarkerRenderer` not including HTML attributes set on the node by other extensions (#947)
20
 
21
## [2.3.6] - 2022-10-30
22
 
23
### Fixed
24
 
25
- Fixed unquoted attribute parsing when closing curly brace is followed by certain characters (like a `.`) (#943)
26
 
27
## [2.3.5] - 2022-07-29
28
 
29
### Fixed
30
 
31
- Fixed error using `InlineParserEngine` when no inline parsers are registered in the `Environment` (#908)
32
 
33
## [2.3.4] - 2022-07-17
34
 
35
### Changed
36
 
37
- Made a number of small tweaks to the embed extension's parsing behavior to fix #898:
38
    - Changed `EmbedStartParser` to always capture embed-like lines in container blocks, regardless of parent block type
39
    - Changed `EmbedProcessor` to also remove `Embed` blocks that aren't direct children of the `Document`
40
    - Increased the priority of `EmbedProcessor` to `1010`
41
 
42
### Fixed
43
 
44
- Fixed `EmbedExtension` not parsing embeds following a list block (#898)
45
 
46
## [2.3.3] - 2022-06-07
47
 
48
### Fixed
49
 
50
- Fixed `DomainFilteringAdapter` not reindexing the embed list (#884, #885)
51
 
52
## [2.3.2] - 2022-06-03
53
 
54
### Fixed
55
 
56
- Fixed FootnoteExtension stripping extra characters from tab-indented footnotes (#881)
57
 
58
## [2.2.5] - 2022-06-03
59
 
60
### Fixed
61
 
62
- Fixed FootnoteExtension stripping extra characters from tab-indented footnotes (#881)
63
 
64
## [2.3.1] - 2022-05-14
65
 
66
### Fixed
67
 
68
- Fixed AutolinkExtension not ignoring trailing strikethrough syntax (#867)
69
 
70
## [2.2.4] - 2022-05-14
71
 
72
### Fixed
73
 
74
- Fixed AutolinkExtension not ignoring trailing strikethrough syntax (#867)
75
 
76
## [2.3.0] - 2022-04-07
77
 
78
### Added
79
 
80
- Added new `EmbedExtension` (#805)
81
- Added `DocumentRendererInterface` as a replacement for the now-deprecated `MarkdownRendererInterface`
82
 
83
### Deprecated
84
 
85
- Deprecated `MarkdownRendererInterface`; use `DocumentRendererInterface` instead
86
 
87
## [2.2.3] - 2022-02-26
88
 
89
### Fixed
90
 
91
- Fixed front matter parsing with Windows line endings (#821)
92
 
93
## [2.1.3] - 2022-02-26
94
 
95
### Fixed
96
 
97
- Fixed front matter parsing with Windows line endings (#821)
98
 
99
## [2.0.4] - 2022-02-26
100
 
101
### Fixed
102
 
103
- Fixed front matter parsing with Windows line endings (#821)
104
 
105
## [2.2.2] - 2022-02-13
106
 
107
### Fixed
108
 
109
- Fixed double-escaping of image alt text (#806, #810)
110
- Fixed Psalm typehints for event class names
111
 
112
## [2.2.1] - 2022-01-25
113
 
114
### Fixed
115
 
116
 - Fixed `symfony/deprecation-contracts` constraint
117
 
118
### Removed
119
 
120
 - Removed deprecation trigger from `MarkdownConverterInterface` to reduce noise
121
 
122
## [2.2.0] - 2022-01-22
123
 
124
### Added
125
 
126
 - Added new `ConverterInterface`
127
 - Added new `MarkdownToXmlConverter` class
128
 - Added new `HtmlDecorator` class which can wrap existing renderers with additional HTML tags
129
 - Added new `table/wrap` config to apply an optional wrapping/container element around a table (#780)
130
 
131
### Changed
132
 
133
 - `HtmlElement` contents can now consist of any `Stringable`, not just `HtmlElement` and `string`
134
 
135
### Deprecated
136
 
137
 - Deprecated `MarkdownConverterInterface` and its `convertToHtml()` method; use `ConverterInterface` and `convert()` instead
138
 
139
## [2.1.2] - 2022-02-13
140
 
141
### Fixed
142
 
143
- Fixed double-escaping of image alt text (#806, #810)
144
- Fixed Psalm typehints for event class names
145
 
146
## [2.1.1] - 2022-01-02
147
 
148
### Added
149
 
150
 - Added missing return type to `Environment::dispatch()` to fix deprecation warning (#778)
151
 
152
## [2.1.0] - 2021-12-05
153
 
154
### Added
155
 
156
- Added support for ext-yaml in FrontMatterExtension (#715)
157
- Added support for symfony/yaml v6.0 in FrontMatterExtension (#739)
158
- Added new `heading_permalink/aria_hidden` config option (#741)
159
 
160
### Fixed
161
 
162
 - Fixed PHP 8.1 deprecation warning (#759, #762)
163
 
164
## [2.0.3] - 2022-02-13
165
 
166
### Fixed
167
 
168
- Fixed double-escaping of image alt text (#806, #810)
169
- Fixed Psalm typehints for event class names
170
 
171
## [2.0.2] - 2021-08-14
172
 
173
### Changed
174
 
175
- Bumped minimum version of league/config to support PHP 8.1
176
 
177
### Fixed
178
 
179
- Fixed ability to register block parsers that identify lines starting with letters (#706)
180
 
181
## [2.0.1] - 2021-07-31
182
 
183
### Fixed
184
 
185
- Fixed nested autolinks (#689)
186
- Fixed description lists being parsed incorrectly (#692)
187
- Fixed Table of Contents not respecting Heading Permalink prefixes (#690)
188
 
189
## [2.0.0] - 2021-07-24
190
 
191
No changes were introduced since the previous RC2 release.
192
See all entries below for a list of changes between 1.x and 2.0.
193
 
194
## [2.0.0-rc2] - 2021-07-17
195
 
196
### Fixed
197
 
198
- Fixed Mentions inside of links creating nested links against the spec's rules (#688)
199
 
200
## [2.0.0-rc1] - 2021-07-10
201
 
202
No changes were introduced since the previous release.
203
 
204
## [2.0.0-beta3] - 2021-07-03
205
 
206
### Changed
207
 
208
 - Any leading UTF-8 BOM will be stripped from the input
209
 - The `getEnvironment()` method of `CommonMarkConverter` and `GithubFlavoredMarkdownConverter` will always return the concrete, configurable `Environment` for upgrading convenience
210
 - Optimized AST iteration
211
 - Lots of small micro-optimizations
212
 
213
## [2.0.0-beta2] - 2021-06-27
214
 
215
### Added
216
 
217
- Added new `Node::iterator()` method and `NodeIterator` class for faster AST iteration (#683, #684)
218
 
219
### Changed
220
 
221
- Made compatible with CommonMark spec 0.30.0
222
- Optimized link label parsing
223
- Optimized AST iteration for a 50% performance boost in some event listeners (#683, #684)
224
 
225
### Fixed
226
 
227
- Fixed processing instructions with EOLs
228
- Fixed case-insensitive matching for HTML tag types
229
- Fixed type 7 HTML blocks incorrectly interrupting lazy paragraphs
230
- Fixed newlines in reference labels not collapsing into spaces
231
- Fixed link label normalization with escaped newlines
232
- Fixed unnecessary AST iteration when no default attributes are configured
233
 
234
## [2.0.0-beta1] - 2021-06-20
235
 
236
### Added
237
 
238
 - **Added three new extensions:**
239
   - `FrontMatterExtension` ([see documentation](https://commonmark.thephpleague.com/extensions/front-matter/))
240
   - `DescriptionListExtension` ([see documentation](https://commonmark.thephpleague.com/extensions/description-lists/))
241
   - `DefaultAttributesExtension` ([see documentation](https://commonmark.thephpleague.com/extensions/default-attributes/))
242
 - **Added new `XmlRenderer` to simplify AST debugging** ([see documentation](https://commonmark.thephpleague.com/xml/)) (#431)
243
 - **Added the ability to configure disallowed raw HTML tags** (#507)
244
 - **Added the ability for Mentions to use multiple characters for their symbol** (#514, #550)
245
 - **Added the ability to delegate event dispatching to PSR-14 compliant event dispatcher libraries**
246
 - **Added new configuration options:**
247
   - Added `heading_permalink/min_heading_level` and `heading_permalink/max_heading_level` options to control which headings get permalinks (#519)
248
   - Added `heading_permalink/fragment_prefix` to allow customizing the URL fragment prefix (#602)
249
   - Added `footnote/backref_symbol` option for customizing backreference link appearance (#522)
250
   - Added `slug_normalizer/max_length` option to control the maximum length of generated URL slugs
251
   - Added `slug_normalizer/unique` option to control whether unique slugs should be generated per-document or per-environment
252
 - **Added purity markers throughout the codebase** (verified with Psalm)
253
 - Added `Query` class to simplify Node traversal when looking to take action on certain Nodes
254
 - Added new `HtmlFilter` and `StringContainerHelper` utility classes
255
 - Added new `AbstractBlockContinueParser` class to simplify the creation of custom block parsers
256
 - Added several new classes and interfaces:
257
   - `BlockContinue`
258
   - `BlockContinueParserInterface`
259
   - `BlockContinueParserWithInlinesInterface`
260
   - `BlockStart`
261
   - `BlockStartParserInterface`
262
   - `ChildNodeRendererInterface`
263
   - `ConfigurableExtensionInterface`
264
   - `CursorState`
265
   - `DashParser` (extracted from `PunctuationParser`)
266
   - `DelimiterParser`
267
   - `DocumentBlockParser`
268
   - `DocumentPreRenderEvent`
269
   - `DocumentRenderedEvent`
270
   - `EllipsesParser` (extracted from `PunctuationParser`)
271
   - `ExpressionInterface`
272
   - `FallbackNodeXmlRenderer`
273
   - `InlineParserEngineInterface`
274
   - `InlineParserMatch`
275
   - `MarkdownParserState`
276
   - `MarkdownParserStateInterface`
277
   - `MarkdownRendererInterface`
278
   - `Query`
279
   - `RawMarkupContainerInterface`
280
   - `ReferenceableInterface`
281
   - `RenderedContent`
282
   - `RenderedContentInterface`
283
   - `ReplaceUnpairedQuotesListener`
284
   - `SpecReader`
285
   - `TableOfContentsRenderer`
286
   - `UniqueSlugNormalizer`
287
   - `UniqueSlugNormalizerInterface`
288
   - `XmlRenderer`
289
   - `XmlNodeRendererInterface`
290
 - Added several new methods:
291
   - `Cursor::getCurrentCharacter()`
292
   - `Environment::createDefaultConfiguration()`
293
   - `Environment::setEventDispatcher()`
294
   - `EnvironmentInterface::getExtensions()`
295
   - `EnvironmentInterface::getInlineParsers()`
296
   - `EnvironmentInterface::getSlugNormalizer()`
297
   - `FencedCode::setInfo()`
298
   - `Heading::setLevel()`
299
   - `HtmlRenderer::renderDocument()`
300
   - `InlineParserContext::getFullMatch()`
301
   - `InlineParserContext::getFullMatchLength()`
302
   - `InlineParserContext::getMatches()`
303
   - `InlineParserContext::getSubMatches()`
304
   - `LinkParserHelper::parsePartialLinkLabel()`
305
   - `LinkParserHelper::parsePartialLinkTitle()`
306
   - `Node::assertInstanceOf()`
307
   - `RegexHelper::isLetter()`
308
   - `StringContainerInterface::setLiteral()`
309
   - `TableCell::getType()`
310
   - `TableCell::setType()`
311
   - `TableCell::getAlign()`
312
   - `TableCell::setAlign()`
313
 
314
### Changed
315
 
316
 - **Changed the converter return type**
317
   - `CommonMarkConverter::convertToHtml()` now returns an instance of `RenderedContentInterface`. This can be cast to a string for backward compatibility with 1.x.
318
 - **Table of Contents items are no longer wrapped with `<p>` tags** (#613)
319
 - **Heading Permalinks now link to element IDs instead of using `name` attributes** (#602)
320
 - **Heading Permalink IDs and URL fragments now have a `content` prefix by default** (#602)
321
 - **Changes to configuration options:**
322
     - `enable_em` has been renamed to `commonmark/enable_em`
323
     - `enable_strong` has been renamed to `commonmark/enable_strong`
324
     - `use_asterisk` has been renamed to `commonmark/use_asterisk`
325
     - `use_underscore` has been renamed to `commonmark/use_underscore`
326
     - `unordered_list_markers` has been renamed to `commonmark/unordered_list_markers`
327
     - `mentions/*/symbol` has been renamed to `mentions/*/prefix`
328
     - `mentions/*/regex` has been renamed to `mentions/*/pattern` and requires partial regular expressions (without delimiters or flags)
329
     - `max_nesting_level` now defaults to `PHP_INT_MAX` and no longer supports floats
330
     - `heading_permalink/slug_normalizer` has been renamed to `slug_normalizer/instance`
331
 - **Event dispatching is now fully PSR-14 compliant**
332
 - **Moved and renamed several classes** - [see the full list here](https://commonmark.thephpleague.com/2.0/upgrading/#classesnamespaces-renamed)
333
 - The `HeadingPermalinkExtension` and `FootnoteExtension` were modified to ensure they never produce a slug which conflicts with slugs created by the other extension
334
 - `SlugNormalizer::normalizer()` now supports optional prefixes and max length options passed in via the `$context` argument
335
 - The `AbstractBlock::$data` and `AbstractInline::$data` arrays were replaced with a `Data` array-like object on the base `Node` class
336
 - **Implemented a new approach to block parsing.** This was a massive change, so here are the highlights:
337
   - Functionality previously found in block parsers and node elements has moved to block parser factories and block parsers, respectively ([more details](https://commonmark.thephpleague.com/2.0/upgrading/#new-block-parsing-approach))
338
   - `ConfigurableEnvironmentInterface::addBlockParser()` is now `EnvironmentBuilderInterface::addBlockParserFactory()`
339
   - `ReferenceParser` was re-implemented and works completely different than before
340
   - The paragraph parser no longer needs to be added manually to the environment
341
 - **Implemented a new approach to inline parsing** where parsers can now specify longer strings or regular expressions they want to parse (instead of just single characters):
342
   - `InlineParserInterface::getCharacters()` is now `getMatchDefinition()` and returns an instance of `InlineParserMatch`
343
   - `InlineParserContext::__construct()` now requires the contents to be provided as a `Cursor` instead of a `string`
344
 - **Implemented delimiter parsing as a special type of inline parser** (via the new `DelimiterParser` class)
345
 - **Changed block and inline rendering to use common methods and interfaces**
346
   - `BlockRendererInterface` and `InlineRendererInterface` were replaced by `NodeRendererInterface` with slightly different parameters. All core renderers now implement this interface.
347
   - `ConfigurableEnvironmentInterface::addBlockRenderer()` and `addInlineRenderer()` were combined into `EnvironmentBuilderInterface::addRenderer()`
348
   - `EnvironmentInterface::getBlockRenderersForClass()` and `getInlineRenderersForClass()` are now just `getRenderersForClass()`
349
 - **Completely refactored the Configuration implementation**
350
   - All configuration-specific classes have been moved into a new `league/config` package with a new namespace
351
   - `Configuration` objects must now be configured with a schema and all options must match that schema - arbitrary keys are no longer permitted
352
   - `Configuration::__construct()` no longer accepts the default configuration values - use `Configuration::merge()` instead
353
   - `ConfigurationInterface` now only contains a `get(string $key)`; this method no longer allows arbitrary default values to be returned if the option is missing
354
   - `ConfigurableEnvironmentInterface` was renamed to `EnvironmentBuilderInterface`
355
   - `ExtensionInterface::register()` now requires an `EnvironmentBuilderInterface` param instead of `ConfigurableEnvironmentInterface`
356
 - **Added missing return types to virtually every class and interface method**
357
 - Re-implemented the GFM Autolink extension using the new inline parser approach instead of document processors
358
   - `EmailAutolinkProcessor` is now `EmailAutolinkParser`
359
   - `UrlAutolinkProcessor` is now `UrlAutolinkParser`
360
 - `HtmlElement` can now properly handle array (i.e. `class`) and boolean (i.e. `checked`) attribute values
361
 - `HtmlElement` automatically flattens any attributes with array values into space-separated strings, removing duplicate entries
362
 - Combined separate classes/interfaces into one:
363
   - `DisallowedRawHtmlRenderer` replaces `DisallowedRawHtmlBlockRenderer` and `DisallowedRawHtmlInlineRenderer`
364
   - `NodeRendererInterface` replaces `BlockRendererInterface` and `InlineRendererInterface`
365
 - Renamed the following methods:
366
   - `Environment` and `ConfigurableEnvironmentInterface`:
367
     - `addBlockParser()` is now `addBlockStartParser()`
368
   - `ReferenceMap` and `ReferenceMapInterface`:
369
     - `addReference()` is now `add()`
370
     - `getReference()` is now `get()`
371
     - `listReferences()` is now `getIterator()`
372
   - Various node (block/inline) classes:
373
     - `getContent()` is now `getLiteral()`
374
     - `setContent()` is now `setLiteral()`
375
 - Moved and renamed the following constants:
376
   - `EnvironmentInterface::HTML_INPUT_ALLOW` is now `HtmlFilter::ALLOW`
377
   - `EnvironmentInterface::HTML_INPUT_ESCAPE` is now `HtmlFilter::ESCAPE`
378
   - `EnvironmentInterface::HTML_INPUT_STRIP` is now `HtmlFilter::STRIP`
379
   - `TableCell::TYPE_HEAD` is now `TableCell::TYPE_HEADER`
380
   - `TableCell::TYPE_BODY` is now `TableCell::TYPE_DATA`
381
 - Changed the visibility of the following properties:
382
   - `AttributesInline::$attributes` is now `private`
383
   - `AttributesInline::$block` is now `private`
384
   - `TableCell::$align` is now `private`
385
   - `TableCell::$type` is now `private`
386
   - `TableSection::$type` is now `private`
387
 - Several methods which previously returned `$this` now return `void`
388
   - `Delimiter::setPrevious()`
389
   - `Node::replaceChildren()`
390
   - `Context::setTip()`
391
   - `Context::setContainer()`
392
   - `Context::setBlocksParsed()`
393
   - `AbstractStringContainer::setContent()`
394
   - `AbstractWebResource::setUrl()`
395
 - Several classes are now marked `final`:
396
   - `ArrayCollection`
397
   - `Emphasis`
398
   - `FencedCode`
399
   - `Heading`
400
   - `HtmlBlock`
401
   - `HtmlElement`
402
   - `HtmlInline`
403
   - `IndentedCode`
404
   - `Newline`
405
   - `Strikethrough`
406
   - `Strong`
407
   - `Text`
408
 - `Heading` nodes no longer directly contain a copy of their inner text
409
 - `StringContainerInterface` can now be used for inlines, not just blocks
410
 - `ArrayCollection` only supports integer keys
411
 - `HtmlElement` now implements `Stringable`
412
 - `Cursor::saveState()` and `Cursor::restoreState()` now use `CursorState` objects instead of arrays
413
 - `NodeWalker::next()` now enters, traverses any children, and leaves all elements which may have children (basically all blocks plus any inlines with children). Previously, it only did this for elements explicitly marked as "containers".
414
 - `InvalidOptionException` was removed
415
 - Anything with a `getReference(): ReferenceInterface` method now implements `ReferencableInterface`
416
 - The `SmartPunct` extension now replaces all unpaired `Quote` elements with `Text` elements towards the end of parsing, making the `QuoteRenderer` unnecessary
417
 - Several changes made to the Footnote extension:
418
   - Footnote identifiers can no longer contain spaces
419
   - Anonymous footnotes can now span subsequent lines
420
   - Footnotes can now contain multiple lines of content, including sub-blocks, by indenting them
421
   - Footnote event listeners now have numbered priorities (but still execute in the same order)
422
   - Footnotes must now be separated from previous content by a blank line
423
 - The line numbers (keys) returned via `MarkdownInput::getLines()` now start at 1 instead of 0
424
 - `DelimiterProcessorCollectionInterface` now extends `Countable`
425
 - `RegexHelper::PARTIAL_` constants must always be used in case-insensitive contexts
426
 - `HeadingPermalinkProcessor` no longer accepts text normalizers via the constructor - these must be provided via configuration instead
427
 - Blocks which can't contain inlines will no longer be asked to render inlines
428
 - `AnonymousFootnoteRefParser` and `HeadingPermalinkProcessor` now implement `EnvironmentAwareInterface` instead of `ConfigurationAwareInterface`
429
 - The second argument to `TextNormalizerInterface::normalize()` must now be an array
430
 - The `title` attribute for `Link` and `Image` nodes is now stored using a dedicated property instead of stashing it in `$data`
431
 - `ListData::$delimiter` now returns either `ListBlock::DELIM_PERIOD` or `ListBlock::DELIM_PAREN` instead of the literal delimiter
432
 
433
### Fixed
434
 
435
 - **Fixed parsing of footnotes without content**
436
 - **Fixed rendering of orphaned footnotes and footnote refs**
437
 - **Fixed some URL autolinks breaking too early** (#492)
438
 - Fixed `AbstractStringContainer` not actually being `abstract`
439
 
440
### Removed
441
 
442
 - **Removed support for PHP 7.1, 7.2, and 7.3** (#625, #671)
443
 - **Removed all previously-deprecated functionality:**
444
   - Removed the ability to pass custom `Environment` instances into the `CommonMarkConverter` and `GithubFlavoredMarkdownConverter` constructors
445
   - Removed the `Converter` class and `ConverterInterface`
446
   - Removed the `bin/commonmark` script
447
   - Removed the `Html5Entities` utility class
448
   - Removed the `InlineMentionParser` (use `MentionParser` instead)
449
   - Removed `DefaultSlugGenerator` and `SlugGeneratorInterface` from the `Extension/HeadingPermalink/Slug` sub-namespace (use the new ones under `./SlugGenerator` instead)
450
   - Removed the following `ArrayCollection` methods:
451
     - `add()`
452
     - `set()`
453
     - `get()`
454
     - `remove()`
455
     - `isEmpty()`
456
     - `contains()`
457
     - `indexOf()`
458
     - `containsKey()`
459
     - `replaceWith()`
460
     - `removeGaps()`
461
   - Removed the `ConfigurableEnvironmentInterface::setConfig()` method
462
   - Removed the `ListBlock::TYPE_UNORDERED` constant
463
   - Removed the `CommonMarkConverter::VERSION` constant
464
   - Removed the `HeadingPermalinkRenderer::DEFAULT_INNER_CONTENTS` constant
465
   - Removed the `heading_permalink/inner_contents` configuration option
466
 - **Removed now-unused classes:**
467
   - `AbstractStringContainerBlock`
468
   - `BlockRendererInterface`
469
   - `Context`
470
   - `ContextInterface`
471
   - `Converter`
472
   - `ConverterInterface`
473
   - `InlineRendererInterface`
474
   - `PunctuationParser` (was split into two classes: `DashParser` and `EllipsesParser`)
475
   - `QuoteRenderer`
476
   - `UnmatchedBlockCloser`
477
 - Removed the following methods, properties, and constants:
478
   - `AbstractBlock::$open`
479
   - `AbstractBlock::$lastLineBlank`
480
   - `AbstractBlock::isContainer()`
481
   - `AbstractBlock::canContain()`
482
   - `AbstractBlock::isCode()`
483
   - `AbstractBlock::matchesNextLine()`
484
   - `AbstractBlock::endsWithBlankLine()`
485
   - `AbstractBlock::setLastLineBlank()`
486
   - `AbstractBlock::shouldLastLineBeBlank()`
487
   - `AbstractBlock::isOpen()`
488
   - `AbstractBlock::finalize()`
489
   - `AbstractBlock::getData()`
490
   - `AbstractInline::getData()`
491
   - `ConfigurableEnvironmentInterface::addBlockParser()`
492
   - `ConfigurableEnvironmentInterface::mergeConfig()`
493
   - `Delimiter::setCanClose()`
494
   - `EnvironmentInterface::getConfig()`
495
   - `EnvironmentInterface::getInlineParsersForCharacter()`
496
   - `EnvironmentInterface::getInlineParserCharacterRegex()`
497
   - `HtmlRenderer::renderBlock()`
498
   - `HtmlRenderer::renderBlocks()`
499
   - `HtmlRenderer::renderInline()`
500
   - `HtmlRenderer::renderInlines()`
501
   - `Node::isContainer()`
502
   - `RegexHelper::matchAll()` (use the new `matchFirst()` method instead)
503
   - `RegexHelper::REGEX_WHITESPACE`
504
 - Removed the second `$contents` argument from the `Heading` constructor
505
 
506
### Deprecated
507
 
508
**The following things have been deprecated and will not be supported in v3.0:**
509
 
510
 - `Environment::mergeConfig()` (set configuration before instantiation instead)
511
 - `Environment::createCommonMarkEnvironment()` and `Environment::createGFMEnvironment()`
512
    - Alternative 1: Use `CommonMarkConverter` or `GithubFlavoredMarkdownConverter` if you don't need to customize the environment
513
    - Alternative 2: Instantiate a new `Environment` and add the necessary extensions yourself
514
 
515
[unreleased]: https://github.com/thephpleague/commonmark/compare/2.3.8...main
516
[2.3.8]: https://github.com/thephpleague/commonmark/compare/2.3.7...2.3.8
517
[2.3.7]: https://github.com/thephpleague/commonmark/compare/2.3.6...2.3.7
518
[2.3.6]: https://github.com/thephpleague/commonmark/compare/2.3.5...2.3.6
519
[2.3.5]: https://github.com/thephpleague/commonmark/compare/2.3.4...2.3.5
520
[2.3.4]: https://github.com/thephpleague/commonmark/compare/2.3.3...2.3.4
521
[2.3.3]: https://github.com/thephpleague/commonmark/compare/2.3.2...2.3.3
522
[2.3.2]: https://github.com/thephpleague/commonmark/compare/2.3.2...main
523
[2.3.1]: https://github.com/thephpleague/commonmark/compare/2.3.0...2.3.1
524
[2.3.0]: https://github.com/thephpleague/commonmark/compare/2.2.3...2.3.0
525
[2.2.5]: https://github.com/thephpleague/commonmark/compare/2.2.4...2.2.5
526
[2.2.4]: https://github.com/thephpleague/commonmark/compare/2.2.3...2.2.4
527
[2.2.3]: https://github.com/thephpleague/commonmark/compare/2.2.2...2.2.3
528
[2.2.2]: https://github.com/thephpleague/commonmark/compare/2.2.1...2.2.2
529
[2.2.1]: https://github.com/thephpleague/commonmark/compare/2.2.0...2.2.1
530
[2.2.0]: https://github.com/thephpleague/commonmark/compare/2.1.1...2.2.0
531
[2.1.3]: https://github.com/thephpleague/commonmark/compare/2.1.2...2.1.3
532
[2.1.2]: https://github.com/thephpleague/commonmark/compare/2.1.1...2.1.2
533
[2.1.1]: https://github.com/thephpleague/commonmark/compare/2.0.2...2.1.1
534
[2.1.0]: https://github.com/thephpleague/commonmark/compare/2.0.2...2.1.0
535
[2.0.4]: https://github.com/thephpleague/commonmark/compare/2.0.3...2.0.4
536
[2.0.3]: https://github.com/thephpleague/commonmark/compare/2.0.2...2.0.3
537
[2.0.2]: https://github.com/thephpleague/commonmark/compare/2.0.1...2.0.2
538
[2.0.1]: https://github.com/thephpleague/commonmark/compare/2.0.0...2.0.1
539
[2.0.0]: https://github.com/thephpleague/commonmark/compare/2.0.0-rc2...2.0.0
540
[2.0.0-rc2]: https://github.com/thephpleague/commonmark/compare/2.0.0-rc1...2.0.0-rc2
541
[2.0.0-rc1]: https://github.com/thephpleague/commonmark/compare/2.0.0-beta3...2.0.0-rc1
542
[2.0.0-beta3]: https://github.com/thephpleague/commonmark/compare/2.0.0-beta2...2.0.0-beta3
543
[2.0.0-beta2]: https://github.com/thephpleague/commonmark/compare/2.0.0-beta1...2.0.0-beta2
544
[2.0.0-beta1]: https://github.com/thephpleague/commonmark/compare/1.6...2.0.0-beta1