Taneli Hukkinen
272a470ed2
Fix newline not rendered in image alt attribute
4 years ago
Alex Kocharin
309c03a9e8
Lower priority for ATX headers to resolve conflict with HTML blocks
fix https://github.com/markdown-it/markdown-it/issues/772
4 years ago
Alex Kocharin
ddbb195546
Remove meta from list of block html tags
ref https://github.com/commonmark/commonmark-spec/issues/527
5 years ago
Alex Kocharin
8ad16ac4d9
Allow EOL in processing instructions
same fix as in https://github.com/commonmark/commonmark.js/issues/196
5 years ago
Alex Kocharin
2290e109c5
Disallow escaped spaces inside link destination
5 years ago
Alex Kocharin
fece91e265
Fix backtick algorithm
now it more closely matches one in `cmark`
5 years ago
Alex Kocharin
b1651b1363
Stop link title parsing when second `(` is found
`[](url (xxx())` is no longer a valid link
5 years ago
Alex Kocharin
f688abccaf
Stop link parsing when second `<` is found
`[](<foo<bar>)` is no longer a valid link
5 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
5 years ago
Alex Kocharin
07a62c6c75
Move nested delimiter info to opening token instead of inline state
6 years ago
Alex Kocharin
7421ecce67
Improve normalization for reference label matching
Simple toUpperCase() does not work for various ligatures and legacy
characters that are already in a different upper case form.
See also:
278ea515fe
6 years ago
Alex Kocharin
02a2605e84
Reduce maximum length for numeric html entities
This is no longer recognized as an entity, according to commonmark 0.29 tests:
�
See also:
026ca8234b
6 years ago
Alex Kocharin
7997fdadcd
Apply special rules for collapsing whitespace inside code blocks
Change as per commonmark 0.29 spec
See also:
e121b4e301
6 years ago
Alex Kocharin
254b776beb
Allow tildes in info string of a fence block with tilde marker
This is now allowed as per commonmark 0.29 spec:
~~~ js ~~~
console.log('hello, world!');
~~~
See also:
b7651e4f8b
6 years ago
Alex Kocharin
a733ffa8b6
Fix blockquote termination inside lists
close https://github.com/markdown-it/markdown-it/issues/386
8 years ago
Alex Kocharin
c57f593b23
Fix blockquote termination by list item
close https://github.com/markdown-it/markdown-it/issues/338
8 years ago
Alex Kocharin
f0e7e562ea
Fix blockquote termination inside indented lists
close https://github.com/markdown-it/markdown-it/issues/329
8 years ago
Alex Kocharin
dc1c392a4d
Remove tabs at the beginning of the line in paragraphs
8 years ago
Alex Kocharin
93544ee4bf
Fenced code block info string should not contain fence marker
Fix https://github.com/markdown-it/markdown-it/issues/301
9 years ago
Alex Kocharin
7a053ef4c5
Fix tab behavior inside blockquotes
9 years ago
Christopher Breeden
a2b7b8e156
Fixes #246 , HTML Escaping alt-tag twice.
9 years ago
Alex Kocharin
637c776ec5
Allow multiline setext headers
9 years ago
Alex Kocharin
b2aee1a978
Expand tabs only when it's needed, as per CommonMark 0.21
10 years ago
Alex Kocharin
909f79e62e
Bring ordered list markers up to spec
10 years ago
Alex Kocharin
954e156848
Allow numbered lists starting from zero
Fixes: https://github.com/markdown-it/markdown-it/issues/129
10 years ago
Alex Kocharin
019bbda5f5
Fix class injection in fence renderer
Close https://github.com/markdown-it/markdown-it/issues/128
10 years ago
Alex Kocharin
c5ee94aaf6
Fix skipLastLF handling in getLines
fix #116
10 years ago
Alex Kocharin
d292f72b69
Add/fix indentation checking in blockquotes
fix #111
10 years ago
Vitaly Puzrin
e9ccf97a0b
Commented out unused `replaceEntities()`
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
7037ee34ad
Add tests for normalization functions
10 years ago
Alex Kocharin
77e8b6cad0
Add configurable url normalizers
- md.normalizeLink
- md.normalizeLinkText
10 years ago
Vitaly Puzrin
1dba8be089
Removed tests added to spec and fixed coverage
10 years ago
Vitaly Puzrin
196be0c20d
Tests formatting cleanup
10 years ago
Alex Kocharin
4f6e8d4830
Improve replaceEntities handling
1. Use unescapeAll instead of replaceEntities(unescapeMd(...))
2. Move replaceEntities(title) out of the renderer.
10 years ago
Alex Kocharin
6430fa1b93
Remove extra tests
They are covered with commonmark tests now.
10 years ago
Alex Kocharin
b8af54ba8e
Use unescapeAll for links unescaping
10 years ago
Alex Kocharin
8ca0b5b52b
Fix code coverage in references
10 years ago
Vitaly Puzrin
18efc864bd
Removed dead code in block rules & improved tests coverage
11 years ago
Alex Kocharin
a9e5c4fac3
Improve coverage for images
11 years ago
Vitaly Puzrin
20e8d93e8d
Reverted c7d4f7b
(no fix needed)
11 years ago
Vitaly Puzrin
0053036571
Improved tests coverage
11 years ago
Vitaly Puzrin
4ca2d3b888
Moved crash tests to separate file & added missed ones
11 years ago
Vitaly Puzrin
c2312d971f
Fixed punctuation check in emphasis
11 years ago
Alex Kocharin
8cb29935a3
Move reference rule to the block chain
11 years ago
Vitaly Puzrin
04ee60d3c4
Removed unused code & improved tests coverage for some rules.
11 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.
11 years ago
Vitaly Puzrin
9afffbaefd
Changed project name, links, attribution & updated constructor call
11 years ago
Vitaly Puzrin
7f7260d021
Better error handling in link normalizer + more tests for edge cases
11 years ago
Alex Kocharin
d54ed887f4
Normalize links before they hit renderer
11 years ago