Classes
ASTRenderer
1
▼
Protocol for AST renderers.
Implementations must accept a Document and return a rendered string.
T…
ASTRenderer
1
▼
Protocol for AST renderers.
Implementations must accept a Document and return a rendered string.
The built-inHtmlRendererconforms to this protocol.
Methods
render
1
str
▼
Render a Document AST to a string.
render
1
str
▼
def render(self, node: Document) -> str
Parameters
| Name | Type | Description |
|---|---|---|
node |
— |
The document AST to render. |
Returns
str
Rendered string output.