blob: 526cb4829e1636d014a81bbcce668f9b2555eb1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
export default function block (state) {
let token
if (state.inlineMode) {
token = new state.Token('inline', '', 0)
token.content = state.src
token.map = [0, 1]
token.children = []
state.tokens.push(token)
} else {
state.md.block.parse(state.src, state.md, state.env, state.tokens)
}
}
|