API reference
python:doukimd.markdown.parse_document
function parse_document
parse_document(parser: MarkdownIt, text: str, page: Page, inventory: ApiIndex | dict[str, ApiSymbol]) -> list[Token]
Source: src/doukimd/markdown.py:280
Expand API nodes into ordinary document tokens before resolution.
Parameters
-
parser — Type: MarkdownIt
-
text — Type: str
-
page — Type: Page
-
inventory — Type: ApiIndex | dict[str, ApiSymbol]
Returns
Type: list[Token]