markdown_it_pyrs
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| MarkdownItPyrsParser mkconvert.parsers.markdown_it_pyrs markdown-it-pyrs: Rust port of markdown-it. Deprecated, removed in mkconvert 3.0. |
🛈 DocStrings¶
Parser using markdown-it-pyrs (Rust).
MarkdownItPyrsParser
¶
Bases: MarkdownParser
markdown-it-pyrs: Rust port of markdown-it. Deprecated, removed in mkconvert 3.0.
Use comrak / pyromark (Rust) or markdown-it-py instead.
Not supported: alerts, math, hard_breaks.
Source code in src/mkconvert/parsers/markdown_it_pyrs.py
__init__
¶
__init__(
options: MarkdownOptions | None = None,
*,
on_unsupported: OnUnsupported = "warn",
xhtml: bool = True,
sourcepos: bool = False,
plugins: list[_PLUGIN_NAME] | None = None,
) -> None
Create a markdown-it-pyrs parser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
options
|
MarkdownOptions | None
|
Common options. |
None
|
on_unsupported
|
OnUnsupported
|
See |
'warn'
|
xhtml
|
bool
|
Self-closing tags with a trailing slash ( |
True
|
sourcepos
|
bool
|
Add |
False
|
plugins
|
list[_PLUGIN_NAME] | None
|
Further plugins / rules to enable. |
None
|