Vitaly Puzrin
cc87145842
Regex workagound for phantomjs, related to #77
10 years ago
Alex Kocharin
e91574c391
Smartquote rule cleanup
10 years ago
Vitaly Puzrin
7075e8881f
Updated and optimized call
10 years ago
Alex Kocharin
e173111e40
Remove stateCore.push() method
10 years ago
Vitaly Puzrin
84375344d2
Simplified replacer
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
b8f7b5b64e
Add markup info for autolink and linkifier tokens
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
77e8b6cad0
Add configurable url normalizers
- md.normalizeLink
- md.normalizeLinkText
10 years ago
Alex Kocharin
f1aff8a5b9
Add StateCore.Token and StateCore.push()
so all state objects would have roughly the same interface
10 years ago
Vitaly Puzrin
9ae876b0fe
Splitted replacements & smartquotes to smaller functions
10 years ago
Vitaly Puzrin
00117cb2e7
Changes to improve speed on node 0.12 & iojs
10 years ago
Vitaly Puzrin
18d80c6f0b
Moved validateLink() to root class
10 years ago
Alex Kocharin
4aabd5592e
Use a common class for tokens
10 years ago
Alex Kocharin
552c130b21
Improve smartquotes handling
Use implementation similar to the new emphasis one.
10 years ago
Vitaly Puzrin
9159018e2a
Replaced `autolinker` with `linkify-it`, closes #2
10 years ago
Vitaly Puzrin
ba460b1a71
Removed unused code
10 years ago
Vitaly Puzrin
a0e122fb4e
deps update
10 years ago
Vitaly Puzrin
9783b530db
Added to top enable/disable methods & errors throw
10 years ago
Vitaly Puzrin
584e55861c
Moved input normalization to core chain
10 years ago
Vitaly Puzrin
90e5a9c9cc
Bulk rules rename (unify)
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
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
a66e29f8d0
Place md link to states and remove other aliases
10 years ago
Vitaly Puzrin
56001200c0
Added link target attribute support for plugins
10 years ago
Vitaly Puzrin
193e94cb61
apidocs: updates + added Ruler docs
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
4a34e7b742
Moved array element subst to utils
10 years ago
Vitaly Puzrin
8a67cb3a83
Do browserified output ascii-friendly
10 years ago
Alex Kocharin
19e1aa28ea
use .toUpperCase() for link normalization
because __proto__ has magic and __PROTO__ doesn't
+ comments for the rest of ':' stuff
10 years ago
Vitaly Puzrin
671fd4f3ed
eslint rules & coding style update
10 years ago
Alex Kocharin
1ff69abeba
Fix arbitrary keys in refs/footnotes/abbrs
10 years ago
Alex Kocharin
4649deb59b
Deduplicate footnotes
10 years ago
Vitaly Puzrin
4bbbffcb77
Footnotes: updated docs & defaults
10 years ago
Alex Kocharin
faae7485b7
Add footnote rules
10 years ago
Vitaly Puzrin
26a22b182a
Fixed replaceEntities, default preset, improved coverage
10 years ago
Vitaly Puzrin
0c26266918
Don't modify env in inline mode
10 years ago
Vitaly Puzrin
c70700151a
Updated parsers API - don't rewrite token arrays in StateCore
10 years ago
Vitaly Puzrin
35063086ba
Moved link parse functions to helpers
10 years ago
Vitaly Puzrin
d917047d32
Removed unnecessary conditions
10 years ago
Vitaly Puzrin
e0765a9d04
Optimized typographer replacements
10 years ago
Alex Kocharin
2c286f5aed
Add abbreviations
10 years ago
Vitaly Puzrin
615d8cdb8a
Added inlineRender & inlineParse methods
10 years ago
Vitaly Puzrin
d5683371b3
Added emails autolinking and improved tests coverage
10 years ago
Vitaly Puzrin
86f416da60
Removed orphaned files
10 years ago
Vitaly Puzrin
14c2e920fd
Nuked typographer class, separated core chain class
10 years ago
Vitaly Puzrin
6b69c9cbf1
Removed singleton in linkify (thread safety)
10 years ago
Vitaly Puzrin
8294a63f8c
Moved scans from typorgapher directly to rules
10 years ago