pyromark
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| PyromarkParser mkconvert.parsers.pyromark Pyromark: bindings to pulldown-cmark, very fast. |
🛈 DocStrings¶
Parser using pyromark (Rust, pulldown-cmark).
PyromarkParser
¶
Bases: MarkdownParser
Pyromark: bindings to pulldown-cmark, very fast.
Not supported: autolinks, heading_ids (only explicit # Title {#id} via
heading_attributes), hard_breaks and raw_html=False.
Source code in src/mkconvert/parsers/pyromark.py
__init__
¶
__init__(
options: MarkdownOptions | None = None,
*,
on_unsupported: OnUnsupported = "warn",
heading_attributes: bool = False,
superscript: bool = False,
subscript: bool = False,
wikilinks: bool = False,
old_footnotes: bool = False,
highlight: Theme | None = None,
) -> None
Create a pyromark parser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
options
|
MarkdownOptions | None
|
Common options. |
None
|
on_unsupported
|
OnUnsupported
|
See |
'warn'
|
heading_attributes
|
bool
|
|
False
|
superscript
|
bool
|
|
False
|
subscript
|
bool
|
|
False
|
wikilinks
|
bool
|
|
False
|
old_footnotes
|
bool
|
Footnotes with the older, looser pulldown-cmark syntax. |
False
|
highlight
|
Theme | None
|
Syntax-highlight code blocks with this theme. |
None
|