Vitaly Puzrin
|
8b815a6072
|
lint: reduce empty lines
|
1 year ago |
Vitaly Puzrin
|
9e7378775f
|
standard: init vars in separate declaration
|
1 year ago |
Vitaly Puzrin
|
7dfcf69b71
|
standard: no spaces near array brackets
|
1 year ago |
Vitaly Puzrin
|
0eb4cb96a4
|
standard: space before function params
|
1 year ago |
Vitaly Puzrin
|
d0219010ad
|
standard: remove semi
|
1 year ago |
Vitaly Puzrin
|
88b8669c46
|
var => const, let
|
1 year ago |
Vitaly Puzrin
|
e92e776411
|
Rewrite core to es6 modules
|
1 year ago |
Alex Kocharin
|
f5a06ec0b6
|
Make link/image/reference helpers overridable
|
8 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
|
f2344b5cbc
|
Add `content` property to image token
close https://github.com/markdown-it/markdown-it/issues/184
|
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
|
10 years ago |
Alex Kocharin
|
77e8b6cad0
|
Add configurable url normalizers
- md.normalizeLink
- md.normalizeLinkText
|
10 years ago |
Vitaly Puzrin
|
18d80c6f0b
|
Moved validateLink() to root class
|
10 years ago |
Alex Kocharin
|
4aabd5592e
|
Use a common class for tokens
|
10 years ago |
Vitaly Puzrin
|
e77666c4a0
|
moved normalizeReference to utils, closes #42
|
10 years ago |
Alex Kocharin
|
8cb29935a3
|
Move reference rule to the block chain
|
10 years ago |
Alex Kocharin
|
6497e9a80f
|
Split links rule to link+image
|
10 years ago |
Vitaly Puzrin
|
e72603af70
|
Moved nesting check from rules to upper level
|
10 years ago |
Vitaly Puzrin
|
a66e29f8d0
|
Place md link to states and remove other aliases
|
10 years ago |
Vitaly Puzrin
|
56001200c0
|
Added link target attribute support for plugins
|
10 years ago |
Alex Kocharin
|
ea62dda30b
|
Remove state.linkLevel
It's redundant after the changes in links algorithm.
|
10 years ago |
Alex Kocharin
|
1d07999279
|
Avoid crash in links when references are disabled
|
10 years ago |
Alex Kocharin
|
08f2d3eb4d
|
Forbid nested links, prefer inner one
|
10 years ago |
Alex Kocharin
|
8470c1cae8
|
Fix an issue with links skipping space after them
|
10 years ago |
Alex Kocharin
|
d7221761fb
|
Render image labels as text
|
10 years ago |
Alex Kocharin
|
19e1aa28ea
|
use .toUpperCase() for link normalization
because __proto__ has magic and __PROTO__ doesn't
+ comments for the rest of ':' stuff
|
10 years ago |
Alex Kocharin
|
1ff69abeba
|
Fix arbitrary keys in refs/footnotes/abbrs
|
10 years ago |
Vitaly Puzrin
|
35063086ba
|
Moved link parse functions to helpers
|
10 years ago |
Alex Kocharin
|
c9adb050e0
|
Preserve initial position in links
fix #55
|
10 years ago |
Vitaly Puzrin
|
2040c4f02e
|
StateInline props rename
|
10 years ago |
Alex Kocharin
|
5d772b9bb6
|
Add validation mode to all inline rules
|
10 years ago |
Alex Kocharin
|
6d4538910c
|
Forbid nested reference links
|
10 years ago |
Vitaly Puzrin
|
b27c630815
|
Code structure and options refactoring
|
10 years ago |
Vitaly Puzrin
|
892460ed0b
|
Options rename
|
10 years ago |
Alex Kocharin
|
0705173c87
|
Move link helpers to it's own file
+ return value of parseLink* functions in the state
|
10 years ago |
Alex Kocharin
|
bbac451a42
|
Trivial bugfix in the links rule
|
10 years ago |
Alex Kocharin
|
9aea37acc1
|
Limit element depth
|
10 years ago |
Alex Kocharin
|
0453b72bf1
|
Rename "lexer" to "parser"
and move rules from lexer_* to rules_*
|
10 years ago |
Alex Kocharin
|
46dc1f93ac
|
Add state.level everywhere
|
10 years ago |
Alex Kocharin
|
b492fa2cc2
|
Add tokenizeSingle method
|
10 years ago |
Alex Kocharin
|
0894209d96
|
Fix: whitespace in links element can contain newlines
|
10 years ago |
Alex Kocharin
|
7884adfda2
|
Small bugfixes
|
10 years ago |
Alex Kocharin
|
7432a6827c
|
Add collapsed and full reference links
|
10 years ago |
Alex Kocharin
|
45da119338
|
Parse link reference definitions
|
10 years ago |
Alex Kocharin
|
0b6b9d206d
|
Parse links and images
|
10 years ago |