Vitaly Puzrin
8b815a6072
lint: reduce empty lines
11 months ago
Vitaly Puzrin
94177fca70
standard: spaces in comments
11 months ago
Vitaly Puzrin
0eb4cb96a4
standard: space before function params
11 months ago
Vitaly Puzrin
d0219010ad
standard: remove semi
11 months ago
Vitaly Puzrin
88b8669c46
var => const, let
11 months ago
Vitaly Puzrin
e92e776411
Rewrite core to es6 modules
12 months ago
Tobias Speicher
e6d1bfdee1
refactor: replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
3 years ago
Alex Kocharin
805c69528d
Fix smartquotes adjacent to code block
close https://github.com/markdown-it/markdown-it/issues/677
4 years ago
Alex Kocharin
f798bea962
Allow opening quote after another punctuation char in typographer
close https://github.com/markdown-it/markdown-it/issues/643
5 years ago
Alex Kocharin
04d36a3f1a
Fix smartquotes around softbreaks
close https://github.com/markdown-it/markdown-it/issues/430
7 years ago
Alex Kocharin
946b1a1961
Take into account adjacent tokens in smartquotes
close https://github.com/markdown-it/markdown-it/issues/181
9 years ago
Alex Kocharin
a7b2b3b4e8
Add multichar replacements in smartquotes
fix #115
10 years ago
Alex Kocharin
e91574c391
Smartquote rule cleanup
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
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
Alex Kocharin
552c130b21
Improve smartquotes handling
Use implementation similar to the new emphasis one.
10 years ago
Vitaly Puzrin
a66e29f8d0
Place md link to states and remove other aliases
10 years ago
Vitaly Puzrin
8a67cb3a83
Do browserified output ascii-friendly
10 years ago
Vitaly Puzrin
14c2e920fd
Nuked typographer class, separated core chain class
10 years ago
Vitaly Puzrin
8294a63f8c
Moved scans from typorgapher directly to rules
10 years ago
Alex Kocharin
d39417e100
Added a core chain
10 years ago
Vitaly Puzrin
4d7c3a717d
Perf: smartquotes logic cleanup
10 years ago
Vitaly Puzrin
94871401b8
Perf: tweaked typorgapher checks
10 years ago
Vitaly Puzrin
8f909bcf33
Moved HTML escaping to renderer
10 years ago
Vitaly Puzrin
0930235149
reorganized files
10 years ago
Vitaly Puzrin
637968d55e
Removed eslint warning
10 years ago
Alex Kocharin
a4bae74995
Add rule to replace quotes with typographic ones
10 years ago