Alex Kocharin
|
be9e92b336
|
Add changelog entry for 12.0.0
|
4 years ago |
Alex Kocharin
|
866fba34a2
|
Add lang str remainder to highlight callback
``` javascript {line-numbers=5 highlight=14-17}
test
```
This markup now calls `highlight` like this:
require('markdown-it')({
highlight(code, lang, attrs) {
assert(code === 'test')
assert(lang === 'javascript')
assert(attrs === '{line-numbers=5 highlight=14-17}')
}
})
close https://github.com/markdown-it/markdown-it/issues/626
close https://github.com/markdown-it/markdown-it/pull/706
|
4 years ago |
Alex Kocharin
|
3021a5207b
|
Bring pipe escape algorithm in tables closer to gfm
- table now doesn't deal with backticks at all
- `|` is considered escaped if and only if there is a `\` character immediately before it
- number of elements in the first row (thead) now must match second row (aligns) exactly
- no tbody if it would be empty
close https://github.com/markdown-it/markdown-it/issues/689
close https://github.com/markdown-it/markdown-it/pull/697
|
4 years ago |
Vitaly Puzrin
|
331ae117e0
|
11.0.1 relased
|
4 years ago |
Vitaly Puzrin
|
f8c402f560
|
dist rebuild
|
4 years ago |
Vas Sudanagunta
|
6629917dec
|
Remove unnecessary calculation
|
4 years ago |
ocavue
|
b979ca01d5
|
fix: remove unused comparison code
|
4 years ago |
Alex Kocharin
|
0b1699b034
|
Add missing line mapping for table rows
fix https://github.com/markdown-it/markdown-it/issues/705
|
4 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
|
b3531c876e
|
Fix blockquotes
```
>>> foo
> bar
>>> baz
```
this is now a single blockquote as per spec
close https://github.com/markdown-it/markdown-it/issues/696
|
4 years ago |
Alex Kocharin
|
144e5fa457
|
Dev deps bump
|
5 years ago |
Vitaly Puzrin
|
5789a3fe96
|
Demo: bump highlight.js
|
5 years ago |
Vitaly Puzrin
|
62f98254b1
|
Demo quick-fix
|
5 years ago |
Vitaly Puzrin
|
1093e68e51
|
11.0.0 released
|
5 years ago |
Vitaly Puzrin
|
8f77018dd7
|
Browser files rebuild
|
5 years ago |
Vitaly Puzrin
|
6c2f559992
|
Bump linkify-it again, skip version with regression
|
5 years ago |
Vitaly Puzrin
|
9133b84195
|
Dev deps bump
|
5 years ago |
Vitaly Puzrin
|
f99330669e
|
Autoupdate web on package publish
|
5 years ago |
Vitaly Puzrin
|
8d6461d7e0
|
Use npm script to build & publish demo
|
5 years ago |
Vitaly Puzrin
|
1c8a8ac8d2
|
Use npm script to build & publish doc
|
5 years ago |
Vitaly Puzrin
|
ab51422d8a
|
istanbul => nyc
|
5 years ago |
Vitaly Puzrin
|
ad90ad0719
|
Bump linkify-it, close #661
|
5 years ago |
Vitaly Puzrin
|
575cfeab8a
|
Merge pull request #658 from chrisjsewell/patch-1
Add link to Python port in README
|
5 years ago |
Chris Sewell
|
bcc5108e30
|
Add Python port link to README
|
5 years ago |
Vitaly Puzrin
|
42005fb725
|
Merge pull request #656 from RAYDENFilipp/patch-1
Fix typos in comments
|
5 years ago |
Philipp_Lypniakov
|
5c1e80aa26
|
Fix typos
|
5 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
|
3c427f921e
|
Fix em- and en-dashes not being typographed when separated by 1 char
close https://github.com/markdown-it/markdown-it/issues/624
|
5 years ago |
Vitaly Puzrin
|
5d3e44b6b0
|
Merge pull request #646 from phated/patch-1
Update Tidelift marketing language
|
5 years ago |
Blaine Bublitz
|
0962bf89c2
|
Update Tidelift marketing language
|
5 years ago |
Rory O’Kane
|
9ceaaa7cd9
|
In demo, fix text in tooltip of “typographer” option (#600)
- Fix spelling of “typographic”
- Use the proper arrow symbol (which is important because using the correct symbols is the point of this option)
|
5 years ago |
Vitaly Puzrin
|
4865852700
|
Add links to all default rules to README (#609)
Add links to all default rules to README
|
5 years ago |
Dima Krutolianov
|
406ebc300f
|
Add links to all default rules to README
|
5 years ago |
Vitaly Puzrin
|
1474422291
|
Changelog: add missed record
|
5 years ago |
Vitaly Puzrin
|
b5d7ea5e8a
|
10.0.0 released
|
5 years ago |
Vitaly Puzrin
|
26eacad9ab
|
Browser files rebuild
|
5 years ago |
Vitaly Puzrin
|
3d24bda404
|
Deps bump
|
5 years ago |
Vitaly Puzrin
|
33dfd129dd
|
Changelog format update
|
5 years ago |
Alex Kocharin
|
07a62c6c75
|
Move nested delimiter info to opening token instead of inline state
|
5 years ago |
Vitaly Puzrin
|
3c67c8f1c8
|
Add funding info
|
5 years ago |
Vitaly Puzrin
|
9e5015f8f7
|
9.1.0 released
|
5 years ago |
Vitaly Puzrin
|
5093920d5c
|
Browser files rebuild
|
5 years ago |
Vitaly Puzrin
|
39a35f478f
|
Remove extra chars from line breaks check (match CM spec)
|
5 years 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 |
Vitaly Puzrin
|
9bbefc1bc3
|
Create issue templates
|
5 years ago |
Vitaly Puzrin
|
28cec6d30a
|
9.0.1 released
|
6 years ago |
Vitaly Puzrin
|
7961e5ae3d
|
Browser files rebuild
|
6 years ago |
Alex Kocharin
|
a1c93811f8
|
Fix incorrect level recalculation in text_collapse
close #466
|
6 years ago |
Alex Kocharin
|
d08c7c3897
|
Add an example related to case-insensitive comparisons
|
6 years ago |