# `Parser`: MyST Markdown to AST Parsing ```{py:currentmodule} myform.Parser ``` `Parser` collects the classmethods that hook MyST-specific block and inline rules (directives, roles, line comments, block breaks, targets) into a `markdown-it` engine. Each rule is registered declaratively through the `ParserEntry.register()` decorator, which records where in the rule chain the parser is inserted; `Parser.setup()` then replays the registry onto an engine alongside the default mdformat extensions. ```{eval-rst} .. automodule:: myform.Parser :members: ```