Alex Kocharin
b2aee1a978
Expand tabs only when it's needed, as per CommonMark 0.21
9 years ago
Alex Kocharin
909f79e62e
Bring ordered list markers up to spec
9 years ago
Alex Kocharin
954e156848
Allow numbered lists starting from zero
Fixes: https://github.com/markdown-it/markdown-it/issues/129
9 years ago
Alex Kocharin
019bbda5f5
Fix class injection in fence renderer
Close https://github.com/markdown-it/markdown-it/issues/128
9 years ago
Alex Kocharin
c5ee94aaf6
Fix skipLastLF handling in getLines
fix #116
9 years ago
Alex Kocharin
d292f72b69
Add/fix indentation checking in blockquotes
fix #111
9 years ago
Vitaly Puzrin
e9ccf97a0b
Commented out unused `replaceEntities()`
9 years ago
Alex Kocharin
3ba6f8b6d2
Tweak scanDelims algorithm
- explicitly set nextChar and lastChar to 0x20 at the begin/end of line
- `_` between punctuation characters can now close an emphasis, see:
https://github.com/jgm/commonmark.js/issues/12#issuecomment-77421682
- `"` between punctuation characters can now be a closed quote
in smartquotes rule.
9 years ago
Alex Kocharin
7037ee34ad
Add tests for normalization functions
9 years ago
Alex Kocharin
77e8b6cad0
Add configurable url normalizers
- md.normalizeLink
- md.normalizeLinkText
9 years ago
Vitaly Puzrin
1dba8be089
Removed tests added to spec and fixed coverage
9 years ago
Vitaly Puzrin
196be0c20d
Tests formatting cleanup
9 years ago
Alex Kocharin
4f6e8d4830
Improve replaceEntities handling
1. Use unescapeAll instead of replaceEntities(unescapeMd(...))
2. Move replaceEntities(title) out of the renderer.
9 years ago
Alex Kocharin
6430fa1b93
Remove extra tests
They are covered with commonmark tests now.
9 years ago
Alex Kocharin
b8af54ba8e
Use unescapeAll for links unescaping
9 years ago
Alex Kocharin
8ca0b5b52b
Fix code coverage in references
9 years ago
Vitaly Puzrin
18efc864bd
Removed dead code in block rules & improved tests coverage
9 years ago
Alex Kocharin
a9e5c4fac3
Improve coverage for images
9 years ago
Vitaly Puzrin
20e8d93e8d
Reverted c7d4f7b
(no fix needed)
9 years ago
Vitaly Puzrin
0053036571
Improved tests coverage
9 years ago
Vitaly Puzrin
4ca2d3b888
Moved crash tests to separate file & added missed ones
9 years ago
Vitaly Puzrin
c2312d971f
Fixed punctuation check in emphasis
9 years ago
Alex Kocharin
8cb29935a3
Move reference rule to the block chain
10 years ago
Vitaly Puzrin
04ee60d3c4
Removed unused code & improved tests coverage for some rules.
10 years ago
Alex Kocharin
f7edb05ef8
Forbid nested brackets in references
This applies to footnotes/abbrs as well, because they are
designed to be implemented in the similar way.
10 years ago
Vitaly Puzrin
9afffbaefd
Changed project name, links, attribution & updated constructor call
10 years ago
Vitaly Puzrin
7f7260d021
Better error handling in link normalizer + more tests for edge cases
10 years ago
Alex Kocharin
d54ed887f4
Normalize links before they hit renderer
10 years ago
Vitaly Puzrin
26a22b182a
Fixed replaceEntities, default preset, improved coverage
10 years ago
Vitaly Puzrin
0de39dc5b7
Coverage improve
10 years ago
Alex Kocharin
473a40f04f
Use unescapeMd in links instead of custom impl
10 years ago
Vitaly Puzrin
d937eec5f3
Renamed stmd -> commonmark
10 years ago
Alex Kocharin
182c21b4c3
Move strikeout test to an appropriate place
10 years ago
Alex Kocharin
c9adb050e0
Preserve initial position in links
fix #55
10 years ago
Vitaly Puzrin
2f274bfc4d
Fixture rename
10 years ago
Alex Kocharin
ba2463f2f5
Remove dead code in em/del
10 years ago
Alex Kocharin
7abfb2718c
Treat newline as a whitespace in em and del
10 years ago
Alex Kocharin
26d1dab349
Add more tests
+ a benchmark case
10 years ago