mistune
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| MistuneParser mkconvert.parsers.mistune Mistune: fast pure-Python parser (not fully CommonMark compliant). |
🛈 DocStrings¶
Parser using mistune (pure Python, fast).
MistuneParser
¶
Bases: MarkdownParser
Mistune: fast pure-Python parser (not fully CommonMark compliant).
Not supported: alerts, smart_punctuation. autolinks links bare https://
URLs only, not www. ones.
Source code in src/mkconvert/parsers/mistune.py
__init__
¶
__init__(
options: MarkdownOptions | None = None,
*,
on_unsupported: OnUnsupported = "warn",
plugins: Sequence[str | Callable[..., None]] = (),
) -> None
Create a mistune parser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
options
|
MarkdownOptions | None
|
Common options. |
None
|
on_unsupported
|
OnUnsupported
|
See |
'warn'
|
plugins
|
Sequence[str | Callable[..., None]]
|
Further mistune plugins: names (e.g. |
()
|