Alex Kocharin
e91574c391
Smartquote rule cleanup
10 years ago
Vitaly Puzrin
e9ccf97a0b
Commented out unused `replaceEntities()`
10 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.
10 years ago
Alex Kocharin
141308d1a7
Fix protocol-less urls from linkifier
Linkifier might send raw hostnames like "example.com", where url
starts with domain name. So we prepend http:// in those cases,
and remove it afterwards.
10 years ago
Alex Kocharin
b05bfd6e8b
Punycode domain names only in known schemas
In urls like `skype:XXX` it prevents XXX to be parsed as domain
name and encoded with punycode.
10 years ago
Alex Kocharin
2a66fb8fbf
Remove replaceEntities from validateLink
Entities will usually be replaced with unescapeAll before they
go through the validator.
10 years ago
Alex Kocharin
7037ee34ad
Add tests for normalization functions
10 years ago
Alex Kocharin
77e8b6cad0
Add configurable url normalizers
- md.normalizeLink
- md.normalizeLinkText
10 years ago
Alex Kocharin
7f8d3ebe82
Update strikethrough scanDelims to match emphasis
10 years ago
Vitaly Puzrin
ec41824b23
Fixed linkifier priority, closes #66
10 years ago
Alex Kocharin
4aabd5592e
Use a common class for tokens
10 years ago
Vitaly Puzrin
1dba8be089
Removed tests added to spec and fixed coverage
10 years ago
Vitaly Puzrin
196be0c20d
Tests formatting cleanup
10 years ago
Vitaly Puzrin
0732ac3bd6
Var rename & coverage improve
10 years ago
Alex Kocharin
552c130b21
Improve smartquotes handling
Use implementation similar to the new emphasis one.
10 years ago
Alex Kocharin
4f6e8d4830
Improve replaceEntities handling
1. Use unescapeAll instead of replaceEntities(unescapeMd(...))
2. Move replaceEntities(title) out of the renderer.
10 years ago
Alex Kocharin
70274da643
Update CommonMark spec to 0.18
10 years ago
Alex Kocharin
6430fa1b93
Remove extra tests
They are covered with commonmark tests now.
10 years ago
Alex Kocharin
b8af54ba8e
Use unescapeAll for links unescaping
10 years ago
Alex Kocharin
3264f17291
Use mdurl module instead of decodeURI+encodeURI
10 years ago
Alex Kocharin
8da8eff8da
Update CommonMark spec to 0.17+
10 years ago
Vitaly Puzrin
9159018e2a
Replaced `autolinker` with `linkify-it`, closes #2
10 years ago
Kirill Efimov
a3a49b5c55
Tables: add/remove columns to match the first row, fix #59
10 years ago
Kirill Efimov
0076a1ebab
Added ability to escape table row separator, fix #5
10 years ago
Kirill Efimov
e54ffa8e32
Added table rule tests
10 years ago
opennota
7da4d5e81b
validateLink: expand entities before trimming and lowercasing
10 years ago
Alex Kocharin
8ca0b5b52b
Fix code coverage in references
10 years ago
Vitaly Puzrin
18efc864bd
Removed dead code in block rules & improved tests coverage
10 years ago
Alex Kocharin
a9e5c4fac3
Improve coverage for images
10 years ago
Vitaly Puzrin
20e8d93e8d
Reverted c7d4f7b
(no fix needed)
10 years ago
Vitaly Puzrin
0053036571
Improved tests coverage
10 years ago
Vitaly Puzrin
e116bd8a63
Tests: updated mailformed URLs samples
10 years ago
Vitaly Puzrin
4ca2d3b888
Moved crash tests to separate file & added missed ones
10 years ago
Vitaly Puzrin
c2312d971f
Fixed punctuation check in emphasis
10 years ago
Vitaly Puzrin
56999c6d5d
CM 0.15 - now all tests pass
10 years ago
Vitaly Puzrin
2090fd4998
del -> strikethrough
10 years ago
Vitaly Puzrin
26ee0a6252
Removed deflist rule (move to plugin)
10 years ago
Vitaly Puzrin
57d56c43fb
Removed footnote rules (move to plugin)
10 years ago
Vitaly Puzrin
c0ccaa79ce
Removed abbr rules (move to plugin)
10 years ago
Alex Kocharin
b7914cb08a
Update CommonMark spec to 0.15 + emphasis changes
10 years ago
Alex Kocharin
8cb29935a3
Move reference rule to the block chain
10 years ago
Alex Kocharin
3a3904ad79
Move abbreviations from core to a block chain
10 years ago
Vitaly Puzrin
04ee60d3c4
Removed unused code & improved tests coverage for some rules.
10 years ago
Vitaly Puzrin
2c433e10a0
Moved ins/mark/sub/sup to plugins
10 years ago
Vitaly Puzrin
c6807cf2b4
Fixed line breaks in deflist
10 years ago
Alex Kocharin
08f2d3eb4d
Forbid nested links, prefer inner one
10 years ago
Alex Kocharin
8470c1cae8
Fix an issue with links skipping space after them
10 years ago
Alex Kocharin
d7221761fb
Render image labels as text
10 years ago
Alex Kocharin
5c7ab1b13c
Revert commonmark spec to 0.13
Previous update was to one from master branch,
which resulted in one more broken test.
10 years ago
Alex Kocharin
0c0917048c
Allow sequence of 4+ markers in pairs
10 years ago