Vitaly Puzrin
0fe7ccb4b7
14.1.0 released
8 months ago
Alex Kocharin
7ad8179972
add changelog
9 months ago
Vitaly Puzrin
4949a10120
14.0.0 released
12 months ago
Alex Kocharin
d9885bad6e
Render html tags inside img alt as their original text ( #979 )
Spec is not clear on how to handle this. Three variations exist:
```
$ echo '![text <textarea> text](image.png)' | /home/user/commonmark.js/bin/commonmark
<p><img src="image.png" alt="text <textarea> text" /></p>
$ echo '![text <textarea> text](image.png)' | /home/user/cmark/build/src/cmark
<p><img src="image.png" alt="text <textarea> text" /></p>
$ echo '![text <textarea> text](image.png)' | /home/user/.local/bin/commonmark
<p><img src="image.png" alt="text text" /></p>
```
Prior to this commit:
- when HTML tags are enabled, tags were removed (as in Haskell version)
- when HTML tags are disabled, tags were escaped (as in C version)
After this commit:
- tags will be escaped (as in C version) regardless of HTML flag
+ render hardbreaks as newlines, same as cmark
12 months ago
Vitaly Puzrin
e476f78bc3
13.0.2 released
1 year ago
Alex Kocharin
80a3adc094
Fix crash in linkify inline rule on malformed input
1 year ago
Alex Kocharin
1529ff4944
Guard against custom rule not incrementing pos
3 years ago
Vitaly Puzrin
bda718216b
13.0.1 released
3 years ago
Vitaly Puzrin
6ec0b76ebe
13.0.0 released
3 years ago
Alex Kocharin
f52351499b
Remove (p) => § replacement in typographer
close https://github.com/markdown-it/markdown-it/issues/763
3 years ago
Alex Kocharin
6b58ec4245
Add linkifier rule to inline chain for full links
prevents emphasis from appearing in `http://example.org/foo._bar_.baz `
3 years ago
Alex Kocharin
75037c6514
Put escape sequences into separate token
3 years ago
Vitaly Puzrin
ffc49ab46b
Fix possible ReDOS in newline rule.
Co-authored-by: MakeNowJust <make.just.on@gmail.com>
3 years ago
Vitaly Puzrin
76469e83dc
12.3.1 released
3 years ago
Alex Kocharin
1cd8a5143b
Fix tab preventing paragraph continuation in lists
close https://github.com/markdown-it/markdown-it/issues/830
3 years ago
Vitaly Puzrin
2e31d34301
12.3.0 released
3 years ago
Alex Kocharin
24abaa51a6
Improve emphasis algorithm
This fixes quadratic complexity in `**<...>**a**<...>**`
pathological case.
3 years ago
Vitaly Puzrin
6e2de08a0b
12.2.0 released
3 years ago
Vitaly Puzrin
13cdeb95ab
12.1.0 released
3 years ago
Alex Kocharin
0b14fa069f
Update CommonMark spec to 0.30
3 years ago
Vitaly Puzrin
df4607f1d4
12.0.6 released
4 years ago
Vitaly Puzrin
3740146fc9
12.0.5 released
4 years ago
Alex Kocharin
309c03a9e8
Lower priority for ATX headers to resolve conflict with HTML blocks
fix https://github.com/markdown-it/markdown-it/issues/772
4 years ago
Vitaly Puzrin
7b8969ce5c
12.0.4 released
4 years ago
Vitaly Puzrin
c9949dd585
Avoid fenced token mutation, #745
4 years ago
Alex Kocharin
c9dd942246
Fix crash when processing strikethrough
close https://github.com/markdown-it/markdown-it/issues/742
4 years ago
Vitaly Puzrin
ef59691072
12.0.3 released
4 years ago
Alex Kocharin
ddbb195546
Remove meta from list of block html tags
ref https://github.com/commonmark/commonmark-spec/issues/527
4 years ago
Alex Kocharin
8ad16ac4d9
Allow EOL in processing instructions
same fix as in https://github.com/commonmark/commonmark.js/issues/196
4 years ago
Alex Kocharin
e729b90a1d
Fix quadratic complexity in autolinks
close https://github.com/markdown-it/markdown-it/issues/737
4 years ago
Alex Kocharin
8cd6fc34c4
Fix quadratic compexity on backticks
close https://github.com/markdown-it/markdown-it/issues/736
4 years ago
Alex Kocharin
2290e109c5
Disallow escaped spaces inside link destination
4 years ago
Alex Kocharin
83b05755db
Fix quadratic time on emphasis
close https://github.com/markdown-it/markdown-it/issues/735
4 years ago
Alex Kocharin
537ab89d7c
Don't try to parse link title if link wasn't found
4 years ago
Alex Kocharin
b1651b1363
Stop link title parsing when second `(` is found
`[](url (xxx())` is no longer a valid link
4 years ago
Alex Kocharin
1e8aff0084
Fix quadratic time on backticks
This commit adds a cache `StateInline->backticks` which remembers
positions for every possible backtick closer (`, ``, ```, etc.).
Algorithm is similar to one described here:
685b714453
close https://github.com/markdown-it/markdown-it/issues/733
4 years ago
Alex Kocharin
1910a3cdb2
Limit () nesting inside urls
Allow no more than 32 levels of nesting in `[]( (((((....))))) )`
for performance reasons.
close https://github.com/markdown-it/markdown-it/issues/732
4 years ago
Alex Kocharin
f688abccaf
Stop link parsing when second `<` is found
`[](<foo<bar>)` is no longer a valid link
4 years ago
Vitaly Puzrin
b60493e620
12.0.2 released
4 years ago
Alex Kocharin
b56eeb01d9
Table with no columns is no longer a table
this is now just raw text:
```md
|
|
|
```
close https://github.com/markdown-it/markdown-it/issues/724
4 years ago
Vitaly Puzrin
e3c4c5cfd7
12.0.1 released
4 years ago
Alex Kocharin
75fe6e0c76
Fix tables inside lists indented with tabs
close https://github.com/markdown-it/markdown-it/issues/721
4 years ago
Vitaly Puzrin
1731de407e
12.0.0 released
4 years ago
Vitaly Puzrin
564de6b249
Deps bump & related updates
4 years ago
Alex Kocharin
f156ed1bff
Don't decode %25 in beautified urls
fix https://github.com/markdown-it/markdown-it/issues/720
4 years ago
Vitaly Puzrin
446bbcf998
Drop bower config
4 years ago
Vitaly Puzrin
a2cf20d3d3
browserify => rollup.js
4 years ago
Vitaly Puzrin
cb42dad4a4
changelog update
4 years ago
Alex Kocharin
9fe835bc12
Fix mappings for table rows
- `table`, `tbody`, `tr` now have mapping
- `th`, `td`, `inline` in tables do not have it
close https://github.com/markdown-it/markdown-it/issues/705
4 years ago
Alex Kocharin
be9e92b336
Add changelog entry for 12.0.0
4 years ago