File tree Expand file tree Collapse file tree 4 files changed +18
-7
lines changed Expand file tree Collapse file tree 4 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) princi
6
6
7
7
## [ Unreleased] [ unreleased ]
8
8
9
+ ### Changed
10
+
11
+ - Made compatible with CommonMark spec 0.31.1, including:
12
+ - Remove ` source ` , add ` search ` to list of recognized block tags
13
+
9
14
## [ 2.5.2] - 2024-08-14
10
15
11
16
### Changed
Original file line number Diff line number Diff line change 31
31
"require-dev" : {
32
32
"ext-json" : " *" ,
33
33
"cebe/markdown" : " ^1.0" ,
34
- "commonmark/cmark" : " 0.31.0 " ,
35
- "commonmark/commonmark.js" : " 0.31.0 " ,
34
+ "commonmark/cmark" : " 0.31.1 " ,
35
+ "commonmark/commonmark.js" : " 0.31.1 " ,
36
36
"composer/package-versions-deprecated" : " ^1.8" ,
37
37
"embed/embed" : " ^4.4" ,
38
38
"erusev/parsedown" : " ^1.0" ,
56
56
"type" : " package" ,
57
57
"package" : {
58
58
"name" : " commonmark/commonmark.js" ,
59
- "version" : " 0.31.0 " ,
59
+ "version" : " 0.31.1 " ,
60
60
"dist" : {
61
- "url" : " https://github.com/commonmark/commonmark.js/archive/0.31.0 .zip" ,
61
+ "url" : " https://github.com/commonmark/commonmark.js/archive/0.31.1 .zip" ,
62
62
"type" : " zip"
63
63
}
64
64
}
67
67
"type" : " package" ,
68
68
"package" : {
69
69
"name" : " commonmark/cmark" ,
70
- "version" : " 0.31.0 " ,
70
+ "version" : " 0.31.1 " ,
71
71
"dist" : {
72
- "url" : " https://github.com/commonmark/cmark/archive/0.31.0 .zip" ,
72
+ "url" : " https://github.com/commonmark/cmark/archive/0.31.1 .zip" ,
73
73
"type" : " zip"
74
74
}
75
75
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ final class RegexHelper
41
41
public const PARTIAL_REG_CHAR = '[^ \\\\()\x00-\x20] ' ;
42
42
public const PARTIAL_IN_PARENS_NOSP = '\(( ' . self ::PARTIAL_REG_CHAR . '| ' . self ::PARTIAL_ESCAPED_CHAR . '| \\\\)*\) ' ;
43
43
public const PARTIAL_TAGNAME = '[a-z][a-z0-9-]* ' ;
44
- public const PARTIAL_BLOCKTAGNAME = '(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source |summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul) ' ;
44
+ public const PARTIAL_BLOCKTAGNAME = '(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|search|section |summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul) ' ;
45
45
public const PARTIAL_ATTRIBUTENAME = '[a-z_:][a-z0-9:._-]* ' ;
46
46
public const PARTIAL_UNQUOTEDVALUE = '[^" \'=<>`\x00-\x20]+ ' ;
47
47
public const PARTIAL_SINGLEQUOTEDVALUE = '\'[^ \']* \'' ;
Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ public static function dataProvider(): \Generator
33
33
$ example ['output ' ] = \str_replace ('</script></li> ' , "</script> \n</li> " , $ example ['output ' ]);
34
34
}
35
35
36
+ // The case-fold test from example 21 fails on PHP 8.0.* and below due to the behavior of mb_convert_case().
37
+ // See https://3v4l.org/7TeXJ.
38
+ if (\PHP_VERSION_ID < 81000 && $ example ['number ' ] === 21 ) {
39
+ continue ;
40
+ }
41
+
36
42
yield $ example ;
37
43
}
38
44
}
You can’t perform that action at this time.
0 commit comments