Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 621 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 621 Revision 991
Zeile 4... Zeile 4...
4
 
4
 
Zeile 5... Zeile 5...
5
**Upgrading from 1.x?** See <https://commonmark.thephpleague.com/2.0/upgrading/> for additional information.
5
**Upgrading from 1.x?** See <https://commonmark.thephpleague.com/2.0/upgrading/> for additional information.
Zeile -... Zeile 6...
-
 
6
 
-
 
7
## [Unreleased][unreleased]
-
 
8
 
-
 
9
## [2.4.0] - 2023-03-24
-
 
10
 
-
 
11
### Added
-
 
12
 
-
 
13
- Added generic `CommonMarkException` marker interface for all exceptions thrown by the library
-
 
14
- Added several new specific exception types implementing that marker interface:
-
 
15
    - `AlreadyInitializedException`
-
 
16
    - `InvalidArgumentException`
-
 
17
    - `IOException`
-
 
18
    - `LogicException`
-
 
19
    - `MissingDependencyException`
-
 
20
    - `NoMatchingRendererException`
-
 
21
    - `ParserLogicException`
-
 
22
- Added more configuration options to the Heading Permalinks extension (#939):
-
 
23
    - `heading_permalink/apply_id_to_heading` - When `true`, the `id` attribute will be applied to the heading element itself instead of the `<a>` tag
-
 
24
    - `heading_permalink/heading_class` - class to apply to the heading element
-
 
25
    - `heading_permalink/insert` - now accepts `none` to prevent the creation of the `<a>` link
-
 
26
- Added new `table/alignment_attributes` configuration option to control how table cell alignment is rendered (#959)
-
 
27
 
-
 
28
### Changed
-
 
29
 
-
 
30
- Change several thrown exceptions from `RuntimeException` to `LogicException` (or something extending it), including:
-
 
31
    - `CallbackGenerator`s that fail to set a URL or return an expected value
-
 
32
    - `MarkdownParser` when deactivating the last block parser or attempting to get an active block parser when they've all been closed
-
 
33
    - Adding items to an already-initialized `Environment`
-
 
34
    - Rendering a `Node` when no renderer has been registered for it
-
 
35
- `HeadingPermalinkProcessor` now throws `InvalidConfigurationException` instead of `RuntimeException` when invalid config values are given.
-
 
36
- `HtmlElement::setAttribute()` no longer requires the second parameter for boolean attributes
-
 
37
- Several small micro-optimizations
-
 
38
- Changed Strikethrough to only allow 1 or 2 tildes per the updated GFM spec
-
 
39
 
-
 
40
### Fixed
-
 
41
 
6
 
42
- Fixed inaccurate `@throws` docblocks throughout the codebase, including `ConverterInterface`, `MarkdownConverter`, and `MarkdownConverterInterface`.
Zeile 7... Zeile 43...
7
## [Unreleased][unreleased]
43
    - These previously suggested that only `\RuntimeException`s were thrown, which was inaccurate as `\LogicException`s were also possible.
Zeile 8... Zeile 44...
8
 
44
 
Zeile 516... Zeile 552...
516
 - `Environment::mergeConfig()` (set configuration before instantiation instead)
552
 - `Environment::mergeConfig()` (set configuration before instantiation instead)
517
 - `Environment::createCommonMarkEnvironment()` and `Environment::createGFMEnvironment()`
553
 - `Environment::createCommonMarkEnvironment()` and `Environment::createGFMEnvironment()`
518
    - Alternative 1: Use `CommonMarkConverter` or `GithubFlavoredMarkdownConverter` if you don't need to customize the environment
554
    - Alternative 1: Use `CommonMarkConverter` or `GithubFlavoredMarkdownConverter` if you don't need to customize the environment
519
    - Alternative 2: Instantiate a new `Environment` and add the necessary extensions yourself
555
    - Alternative 2: Instantiate a new `Environment` and add the necessary extensions yourself
Zeile 520... Zeile 556...
520
 
556
 
-
 
557
[unreleased]: https://github.com/thephpleague/commonmark/compare/2.4.0...main
521
[unreleased]: https://github.com/thephpleague/commonmark/compare/2.3.9...main
558
[2.4.0]: https://github.com/thephpleague/commonmark/compare/2.3.9...2.4.0
522
[2.3.9]: https://github.com/thephpleague/commonmark/compare/2.3.8...2.3.9
559
[2.3.9]: https://github.com/thephpleague/commonmark/compare/2.3.8...2.3.9
523
[2.3.8]: https://github.com/thephpleague/commonmark/compare/2.3.7...2.3.8
560
[2.3.8]: https://github.com/thephpleague/commonmark/compare/2.3.7...2.3.8
524
[2.3.7]: https://github.com/thephpleague/commonmark/compare/2.3.6...2.3.7
561
[2.3.7]: https://github.com/thephpleague/commonmark/compare/2.3.6...2.3.7
525
[2.3.6]: https://github.com/thephpleague/commonmark/compare/2.3.5...2.3.6
562
[2.3.6]: https://github.com/thephpleague/commonmark/compare/2.3.5...2.3.6