Vitaly Puzrin
e9ccf97a0b
Commented out unused `replaceEntities()`
9 years ago
Vitaly Puzrin
84375344d2
Simplified replacer
9 years ago
Vitaly Puzrin
3ca218b27f
Deps refresh & migration link
9 years ago
Vitaly Puzrin
2b5aca9642
Docs update
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
Vitaly Puzrin
387f3f0a8e
Use externap package for entities data
9 years ago
Alex Kocharin
b91a56dac2
Fix ndoc comments
9 years ago
Alex Kocharin
b8f7b5b64e
Add markup info for autolink and linkifier tokens
9 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.
9 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.
9 years ago
Alex Kocharin
2a66fb8fbf
Remove replaceEntities from validateLink
Entities will usually be replaced with unescapeAll before they
go through the validator.
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
Alex Kocharin
31ce62ce80
Re-export uc.micro as md.utils.lib.ucmicro
9 years ago
Alex Kocharin
ab47e3a0c0
Update demo script to use markdown-it@4.x api
9 years ago
Alex Kocharin
7f8d3ebe82
Update strikethrough scanDelims to match emphasis
9 years ago
Alex Kocharin
f1aff8a5b9
Add StateCore.Token and StateCore.push()
so all state objects would have roughly the same interface
9 years ago
Alex Kocharin
78bbb9a200
Add token.meta for use in plugins
9 years ago
Alex Kocharin
e0cfc6db4c
Re-export uc.micro and mdurl
9 years ago
Alex Kocharin
5a390adbbc
Make Token class accessible from a State
9 years ago
Vitaly Puzrin
d6128515b3
Removed unnecessary checks
9 years ago
Vitaly Puzrin
917f5dee32
Attrs renderer signature change
9 years ago
Vitaly Puzrin
d76475721c
typo fix
9 years ago
Vitaly Puzrin
9ae876b0fe
Splitted replacements & smartquotes to smaller functions
9 years ago
Vitaly Puzrin
00117cb2e7
Changes to improve speed on node 0.12 & iojs
9 years ago
Vitaly Puzrin
3730820945
Added token helpers & reorganized renderer
9 years ago
Vitaly Puzrin
e6e573efa6
Added example of tuneable text rule, for memory
9 years ago
Vitaly Puzrin
199e2488e6
Docs update
9 years ago
Vitaly Puzrin
18d80c6f0b
Moved validateLink() to root class
9 years ago
Alex Kocharin
bb4dcf48f4
Set token.markup whereever appropriate
9 years ago
Vitaly Puzrin
ec41824b23
Fixed linkifier priority, closes #66
9 years ago
Alex Kocharin
4aabd5592e
Use a common class for tokens
9 years ago
Vitaly Puzrin
329a35a9c9
3.1.0 released
9 years ago
Vitaly Puzrin
d76529a654
Browser files rebuild
9 years ago
Vitaly Puzrin
be6e0b7a80
package.json cleanup
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
Vitaly Puzrin
0732ac3bd6
Var rename & coverage improve
9 years ago
Alex Kocharin
552c130b21
Improve smartquotes handling
Use implementation similar to the new emphasis one.
9 years ago
Vitaly Puzrin
489feb9c8c
Deps & changelog update
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
70274da643
Update CommonMark spec to 0.18
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
Vitaly Puzrin
e4b59586b6
Doc fix, closes #64
9 years ago
Alex Kocharin
3264f17291
Use mdurl module instead of decodeURI+encodeURI
9 years ago
Alex Kocharin
ecd010c020
Bring emphasis up to spec
9 years ago
Alex Kocharin
8da8eff8da
Update CommonMark spec to 0.17+
9 years ago
Vitaly Puzrin
9159018e2a
Replaced `autolinker` with `linkify-it`, closes #2
10 years ago
Vitaly Puzrin
e03f9586c3
3.0.7 released
10 years ago