Alex Kocharin
e5696e5b36
Partially fix tabs inside code blocks
8 years ago
Alex Kocharin
ffd30efe99
Update CommonMark spec to 0.26
8 years ago
Alex Kocharin
9335394a99
Disable replacements inside autolinks
close https://github.com/markdown-it/markdown-it/issues/272
8 years ago
Christopher Breeden
a2b7b8e156
Fixes #246 , HTML Escaping alt-tag twice.
8 years ago
Sean Lang
10d6448b22
support tables with missing values
(and add supporting test case)
8 years ago
Alex Kocharin
07cfbc9264
Add workarounds to lists to conform with CM spec
9 years ago
Alex Kocharin
0661eea828
Remove scheme whitelist for autolinks
9 years ago
Alex Kocharin
1482c3e64f
Disallow spaces inside links
1. between link label and reference: `[foo] [bar]`
2. inside angular brackets: `[](<foo bar>)`
9 years ago
Alex Kocharin
637c776ec5
Allow multiline setext headers
9 years ago
Alex Kocharin
ab36c44864
Update CommonMark spec to 0.24
9 years ago
Alex Kocharin
a18ddc0223
Loosen table rules
1. allow one-column tables
2. allow mismatched column count
close https://github.com/markdown-it/markdown-it/issues/171
9 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
0318337a3d
Bump table priority before code blocks
ref https://github.com/markdown-it/markdown-it/issues/120
9 years ago
Alex Kocharin
378ac9074e
Change emphasis parsing algorithm
Tokenize first, and replace tokens with emphasis tags on
a second pass using an algorithm close to one used in CM.
9 years ago
Alex Kocharin
b2aee1a978
Expand tabs only when it's needed, as per CommonMark 0.21
9 years ago
Alex Kocharin
02c04be9e5
Fix reference edge-case
9 years ago
Alex Kocharin
b2ea95dcb2
Update CommonMark spec to 0.21
9 years ago
Alex Kocharin
909f79e62e
Bring ordered list markers up to spec
9 years ago
Alex Kocharin
954e156848
Allow numbered lists starting from zero
Fixes: https://github.com/markdown-it/markdown-it/issues/129
9 years ago
Alex Kocharin
019bbda5f5
Fix class injection in fence renderer
Close https://github.com/markdown-it/markdown-it/issues/128
9 years ago
Alex Kocharin
7b961ee1ef
Update CommonMark spec to 0.20
9 years ago
Alex Kocharin
c5ee94aaf6
Fix skipLastLF handling in getLines
fix #116
9 years ago
Alex Kocharin
d292f72b69
Add/fix indentation checking in blockquotes
fix #111
9 years ago
Alex Kocharin
7cd639ed39
Update CommonMark spec to 0.19
9 years ago
JT
ba16fad6a2
Don't split cells on pipe characters inside backticks.
Includes some relevant test cases.
Fixes #86
9 years ago
Vitaly Puzrin
6c57f7f792
Fixed regexes in prev commit (should match strings from the start only)
9 years ago
Vitaly Puzrin
f76d3beb46
Disabled data URIs (allow only some whitelisted images)
9 years ago
Alex Kocharin
e91574c391
Smartquote rule cleanup
9 years ago
Vitaly Puzrin
e9ccf97a0b
Commented out unused `replaceEntities()`
9 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.
9 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.
9 years ago
Alex Kocharin
b05bfd6e8b
Punycode domain names only in known schemas
In urls like `skype:XXX` it prevents XXX to be parsed as domain
name and encoded with punycode.
9 years ago
Alex Kocharin
2a66fb8fbf
Remove replaceEntities from validateLink
Entities will usually be replaced with unescapeAll before they
go through the validator.
9 years ago
Alex Kocharin
7037ee34ad
Add tests for normalization functions
9 years ago
Alex Kocharin
77e8b6cad0
Add configurable url normalizers
- md.normalizeLink
- md.normalizeLinkText
9 years ago
Alex Kocharin
7f8d3ebe82
Update strikethrough scanDelims to match emphasis
9 years ago
Vitaly Puzrin
ec41824b23
Fixed linkifier priority, closes #66
9 years ago
Alex Kocharin
4aabd5592e
Use a common class for tokens
9 years ago
Vitaly Puzrin
1dba8be089
Removed tests added to spec and fixed coverage
9 years ago
Vitaly Puzrin
196be0c20d
Tests formatting cleanup
9 years ago
Vitaly Puzrin
0732ac3bd6
Var rename & coverage improve
9 years ago
Alex Kocharin
552c130b21
Improve smartquotes handling
Use implementation similar to the new emphasis one.
9 years ago
Alex Kocharin
4f6e8d4830
Improve replaceEntities handling
1. Use unescapeAll instead of replaceEntities(unescapeMd(...))
2. Move replaceEntities(title) out of the renderer.
9 years ago
Alex Kocharin
70274da643
Update CommonMark spec to 0.18
9 years ago
Alex Kocharin
6430fa1b93
Remove extra tests
They are covered with commonmark tests now.
9 years ago
Alex Kocharin
b8af54ba8e
Use unescapeAll for links unescaping
9 years ago
Alex Kocharin
3264f17291
Use mdurl module instead of decodeURI+encodeURI
9 years ago
Alex Kocharin
8da8eff8da
Update CommonMark spec to 0.17+
9 years ago
Vitaly Puzrin
9159018e2a
Replaced `autolinker` with `linkify-it`, closes #2
10 years ago
Kirill Efimov
a3a49b5c55
Tables: add/remove columns to match the first row, fix #59
10 years ago