Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
https://markdown-it.github.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
341 B
14 lines
341 B
1 year ago
|
export default function block(state) {
|
||
10 years ago
|
var token;
|
||
10 years ago
|
|
||
|
if (state.inlineMode) {
|
||
10 years ago
|
token = new state.Token('inline', '', 0);
|
||
10 years ago
|
token.content = state.src;
|
||
|
token.map = [ 0, 1 ];
|
||
|
token.children = [];
|
||
10 years ago
|
state.tokens.push(token);
|
||
10 years ago
|
} else {
|
||
10 years ago
|
state.md.block.parse(state.src, state.md, state.env, state.tokens);
|
||
10 years ago
|
}
|
||
1 year ago
|
}
|