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
b2883a7fd2
Fix meta information for autolink tokens
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
Alf Eaton
0a6ecd942b
Change variable name to remove reserved keyword
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
Vitaly Puzrin
255d62d391
Added iframe to list of block tags
9 years ago
Thomas Reggi
7a888ec9a2
typo for for*
9 years ago
Vitaly Puzrin
bf424c8a49
deps update, configs & code cleanup
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
643d9f75a0
Implement new html block algorithm from 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
86fd73fcba
Disallow empty reference labels
9 years ago
Alex Kocharin
a7b2b3b4e8
Add multichar replacements in smartquotes
fix #115
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
Vitaly Puzrin
2bc103844c
lint fix
9 years ago
Vitaly Puzrin
cec9d91e3e
Clarified info about default disabled link schemas
9 years ago
Alex Kocharin
25fea504f6
Update emphasis to match CommonMark 0.19
9 years ago
Vitaly Puzrin
e92f99640f
Added security info
9 years ago
JT
ba16fad6a2
Don't split cells on pipe characters inside backticks.
Includes some relevant test cases.
Fixes #86
9 years ago
Andrey Pissantchev
b14b837a04
Small fix in ruler documentation example
9 years ago
Vitaly Puzrin
6c57f7f792
Fixed regexes in prev commit (should match strings from the start only)
9 years ago
Vitaly Puzrin
0db98f7b4a
Simplified links validator - use regexes
9 years ago
Vitaly Puzrin
f76d3beb46
Disabled data URIs (allow only some whitelisted images)
9 years ago
Vitaly Puzrin
cc87145842
Regex workagound for phantomjs, related to #77
9 years ago
Alex Kocharin
e91574c391
Smartquote rule cleanup
9 years ago
Vitaly Puzrin
d4fe12a6ec
Fixed html block tags with numbers in name, closes #74
9 years ago
Vitaly Puzrin
45773e223d
Renderer cleanup
9 years ago
Vitaly Puzrin
73599e022b
Fixed emphasis closing token marker, closes #69
9 years ago
Vitaly Puzrin
7075e8881f
Updated and optimized call
9 years ago
Alex Kocharin
e173111e40
Remove stateCore.push() method
9 years ago
Vitaly Puzrin
e9ccf97a0b
Commented out unused `replaceEntities()`
9 years ago
Vitaly Puzrin
84375344d2
Simplified replacer
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
Vitaly Puzrin
387f3f0a8e
Use externap package for entities data
9 years ago
Alex Kocharin
b91a56dac2
Fix ndoc comments
9 years ago
Alex Kocharin
b8f7b5b64e
Add markup info for autolink and linkifier tokens
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
31ce62ce80
Re-export uc.micro as md.utils.lib.ucmicro
9 years ago
Alex Kocharin
7f8d3ebe82
Update strikethrough scanDelims to match emphasis
9 years ago
Alex Kocharin
f1aff8a5b9
Add StateCore.Token and StateCore.push()
so all state objects would have roughly the same interface
9 years ago
Alex Kocharin
78bbb9a200
Add token.meta for use in plugins
9 years ago