-
Notifications
You must be signed in to change notification settings - Fork 80
Commit 4535d77
⬆️ Comply with Commonmark 0.31.2 (#362)
This PR ports markdown-it/markdown-it@cd24778,
which in turn complies with https://spec.commonmark.org/0.31.2/changes.html:
- Unicode:
```diff
A [Unicode punctuation character](@) is
- an [ASCII punctuation character] or anything in
- he general Unicode categories `Pc`, `Pd`, `Pe`, `Pf`, `Pi`, `Po`, or `Ps`.
+ a character in the Unicode `P` (puncuation) or `S` (symbol) general categories.
```
- HTML comments:
```diff
- An HTML comment consists of `<!--` + *text* + `-->`,
- where *text* does not start with `>` or `->`, does not end with `-`, and does not contain `--`.
- (See the [HTML5 spec](http://www.w3.org/TR/html5/syntax.html#comments).)
+ An [HTML comment](@) consists of `<!-->`, `<!--->`, or `<!--`, a string of characters not including the string `-->`, and `-->`
+ (see the [HTML spec](https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state)).
```
- HTML blocks:
```diff
Start condition: line begins the string < or </ followed by one of the strings (case-insensitive)
- `section`, `source`, `summary`, `table`, `tbody`, `td`,
+ `search`, `section`, `summary`, `table`, `tbody`, `td`,
```
- Setext header:
```diff
- If a line containing a single `-` can be interpreted as an
- empty [list items], it should be interpreted this way
- and not as a [setext heading underline].
```
Co-Authored-By: Clément Bœsch <34467+ubitux@users.noreply.github.com>1 parent 8eb20ac commit 4535d77
File tree
9 files changed
+2459
-2436
lines changed- markdown_it/common
- tests
- test_cmark_spec
- test_spec
- test_port/fixtures
9 files changed
+2459
-2436
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | + | ||
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
| |||
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
56 | + | ||
55 | 57 |
| |
56 | - | ||
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 | - | ||
18 | + | ||
19 | 19 |
| |
20 | - | ||
20 | + | ||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
|
Lines changed: 2 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | + | ||
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
| |||
192 | 193 |
| |
193 | 194 |
| |
194 | 195 |
| |
195 | - | ||
196 | - | ||
197 | - | ||
198 | - | ||
199 | 196 |
| |
200 | - | ||
201 | 197 |
| |
202 | 198 |
| |
203 | - | ||
199 | + | ||
204 | 200 |
| |
205 | 201 |
| |
206 | 202 |
| |
|
0 commit comments