Vitaly Puzrin
|
7a13199f6d
|
Moved rules manager to separate class (inline parser)
|
10 years ago |
Vitaly Puzrin
|
7390503066
|
Moved rules manager to separate class (block parser only)
|
10 years ago |
Vitaly Puzrin
|
ece7b3e3f1
|
Renamed main class & file
|
10 years ago |
Alex Kocharin
|
0453b72bf1
|
Rename "lexer" to "parser"
and move rules from lexer_* to rules_*
|
10 years ago |
Alex Kocharin
|
c8fa672cec
|
Move parse_reference to its own file
+ change its signature
|
10 years ago |
Vitaly Puzrin
|
58f2b8c37e
|
Added syntax highlight support for fenced blocks
|
10 years ago |
Alex Kocharin
|
46dc1f93ac
|
Add state.level everywhere
|
10 years ago |
Alex Kocharin
|
b492fa2cc2
|
Add tokenizeSingle method
|
10 years ago |
Alex Kocharin
|
d3658c33dc
|
Workaround for a bug with nested list elements tightness
|
10 years ago |
Alex Kocharin
|
3afaf55344
|
Fix: "\*" isn't a part of a emphasis marker sequence
|
10 years ago |
Alex Kocharin
|
0894209d96
|
Fix: whitespace in links element can contain newlines
|
10 years ago |
Vitaly Puzrin
|
bad3649d0f
|
Set breaks off by default
|
10 years ago |
Vitaly Puzrin
|
9b1df74176
|
Code cleanup
|
10 years ago |
Vitaly Puzrin
|
6b0c7665b8
|
Fixed entities in links & fences according to new spec
|
10 years ago |
Vitaly Puzrin
|
e44a781160
|
Fixed entities in text for new spec
|
10 years ago |
Vitaly Puzrin
|
ca47821eaa
|
HTML block fix (tag names should be case incensitive)
|
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 |
Vitaly Puzrin
|
f13f984335
|
Added `breaks` option, on by default
|
10 years ago |
Alex Kocharin
|
74a84f8ecd
|
Implement emphasis parsing
|
10 years ago |
Alex Kocharin
|
178cdf4777
|
Fix paragraph tightness
`state.tight` might be updated in the rules, so we should set it
after running rules, not before
|
10 years ago |
Alex Kocharin
|
b3515881f3
|
Fix two consecutive newlines in nested lists
|
10 years ago |
Alex Kocharin
|
1449ac720a
|
Remove stopOnTwoNewlines argument in block parser
Replaced with block.listMode (boolean)
|
10 years ago |
Vitaly Puzrin
|
c384f13798
|
API & options names polish
|
10 years ago |
Vitaly Puzrin
|
5d89fd85b0
|
Added inline html tags support
|
10 years ago |
Vitaly Puzrin
|
1f7054c187
|
moved url schemas list to external file
|
10 years ago |
Vitaly Puzrin
|
a8e6bab747
|
Reworked html parse in block lexer + added `html` option
|
10 years ago |
Vitaly Puzrin
|
e6341a4812
|
Files reorganize/cleanup
|
10 years ago |
Vitaly Puzrin
|
d87eeb2ab0
|
Assorted fixes & speed opts
|
10 years ago |
Vitaly Puzrin
|
c9af6654f8
|
Reworked whitetspaces cleanup in inlines
|
10 years ago |
Vitaly Puzrin
|
172e77c318
|
Added backticks parse
|
10 years ago |
Vitaly Puzrin
|
0d8b010bd2
|
Added autolink parse
|
10 years ago |
Vitaly Puzrin
|
1543a38cd7
|
Updated text match rule
|
10 years ago |
Vitaly Puzrin
|
f4866cb76b
|
Inline lexer draft
|
10 years ago |
Alex Kocharin
|
691516762a
|
Fix blockquotes inside lists
Need to zero out blkIndent, failed test:
---
* a
> b
>
* c
---
|
10 years ago |
Alex Kocharin
|
4f834e417d
|
Fix list continuation.
It should take indent into account:
---
- lev1
- lev2
- next
---
|
10 years ago |
Alex Kocharin
|
e3a7ddf4a8
|
Blockquote parsing improved
|
10 years ago |
Vitaly Puzrin
|
350d0174df
|
Added html block draft + minor fixes
|
10 years ago |
Alex Kocharin
|
7a8899e501
|
Fix nested elements inside lists
"# foo" should be parsed as "h1", not as a continuation
---
- test
# foo
---
|
10 years ago |
Alex Kocharin
|
d8fd23eb49
|
Fix nested code blocks inside lists
This is now parsed correctly:
---
- test
---
|
10 years ago |
Vitaly Puzrin
|
9728b685ec
|
Rewritten string fetch for inline tokenizer + list fixes
|
10 years ago |
Alex Kocharin
|
d6651b5ce6
|
Reimplement lists using indent algorithm
And put blkIndents everywhere appropriate in block rules.
|
10 years ago |
Alex Kocharin
|
60f36941fa
|
Better algorithm for parsing lists
|
10 years ago |
Alex Kocharin
|
470bfecbd4
|
Better algorithm for parsing block quotes
|
10 years ago |
Vitaly Puzrin
|
e0a153fe09
|
fences, heading, list fixes for stmd cases
|
10 years ago |
Vitaly Puzrin
|
80b4223040
|
Replace tabs properly
|
10 years ago |
Vitaly Puzrin
|
4aa169634f
|
Tight lists + shink start of strings in inline blocks
|
10 years ago |
Vitaly Puzrin
|
abc2900ce6
|
Pass token index to renderer fn + use it for br magick
|
10 years ago |