markdown_it.rules_core.block 源代码

from ..token import Token
from .state_core import StateCore


[文档]def block(state: StateCore) -> None: if state.inlineMode: token = Token("inline", "", 0) token.content = state.src token.map = [0, 1] token.children = [] state.tokens.append(token) else: state.md.block.parse( state.src, state.md, state.env, state.tokens, state.srcCharCode )