Vitaly Puzrin
10 years ago
6 changed files with 38 additions and 39 deletions
@ -1,5 +1,17 @@ |
|||
'use strict'; |
|||
|
|||
module.exports = function block(state) { |
|||
|
|||
if (state.inlineMode) { |
|||
state.tokens.push({ |
|||
type: 'inline', |
|||
content: state.src.replace(/\n/g, ' ').trim(), |
|||
level: 0, |
|||
lines: [ 0, 1 ], |
|||
children: [] |
|||
}); |
|||
|
|||
} else { |
|||
state.block.parse(state.src, state.options, state.env, state.tokens); |
|||
} |
|||
}; |
|||
|
Loading…
Reference in new issue