markdown_it.rules_core.inline 源代码
from .state_core import StateCore
[文档]def inline(state: StateCore) -> None:
"""Parse inlines"""
for token in state.tokens:
if token.type == "inline":
if token.children is None:
token.children = []
state.md.inline.parse(token.content, state.md, state.env, token.children)