Vitaly Puzrin
|
8b815a6072
|
lint: reduce empty lines
|
12 months ago |
Vitaly Puzrin
|
0eb4cb96a4
|
standard: space before function params
|
12 months ago |
Vitaly Puzrin
|
d0219010ad
|
standard: remove semi
|
12 months ago |
Vitaly Puzrin
|
88b8669c46
|
var => const, let
|
12 months ago |
Vitaly Puzrin
|
e92e776411
|
Rewrite core to es6 modules
|
1 year ago |
Mathias Bynens
|
faecae0ba7
|
Match CommonMark spec exactly
|
5 years ago |
Mathias Bynens
|
d9cb3ccb67
|
Don’t recognize U+2028 as a newline character
As of https://github.com/tc39/proposal-json-superset (ES2019), U+2028 is allowed in ECMAScript string literals, just like it already was in JSON strings. Splitting on U+2028 breaks the layout of a Markdown file containing a code example:
https://markdown-it.github.io/#md3=%7B%22source%22%3A%22a%5Cn%5Cn%5Cn%60%60%60js%5Cn%2F%2F%20A%20JavaScript%20object%20%28or%20array%2C%20or%20string%29%20representing%20some%20data.%5Cnconst%20data%20%3D%20%7B%5Cn%20%20LineTerminators%3A%20%27%5C%5Cn%5C%5Cr%E2%80%A8%E2%80%A9%27%2C%20%2F%2F%20%27%5C%5Cn%5C%5Cr%5C%5Cu2028%5C%5Cu2029%27%5Cn%7D%3B%5Cn%60%60%60%5Cn%5Cnb%22%2C%22defaults%22%3A%7B%22html%22%3Afalse%2C%22xhtmlOut%22%3Afalse%2C%22breaks%22%3Afalse%2C%22langPrefix%22%3A%22language-%22%2C%22linkify%22%3Atrue%2C%22typographer%22%3Atrue%2C%22_highlight%22%3Atrue%2C%22_strict%22%3Afalse%2C%22_view%22%3A%22html%22%7D%7D
This patch removes U+2028 as a newline character, to align markdown-it’s behavior more closely with the JavaScript string literal grammar.
|
5 years ago |
Ted Ge
|
d533c27017
|
fix normalize function name (#538)
|
6 years ago |
Alex Kocharin
|
6dbe532460
|
Replace standalone CR with LF when normalizing newlines
fix #252
|
9 years ago |
Alex Kocharin
|
b2aee1a978
|
Expand tabs only when it's needed, as per CommonMark 0.21
|
9 years ago |
Vitaly Puzrin
|
ba460b1a71
|
Removed unused code
|
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 |