CmarkgfmParser
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| MarkdownParser mkconvert.parsers.base Base class for Markdown -> HTML parsers. |
⋔ Inheritance diagram¶
graph TD
3245185810["cmarkgfm.CmarkgfmParser"]
2536207506["base.MarkdownParser"]
1836221132["_core.Backend"]
925645236["abc.ABC"]
2751680898["builtins.object"]
3481597255["typing.Generic"]
2536207506 --> 3245185810
1836221132 --> 2536207506
925645236 --> 1836221132
2751680898 --> 925645236
3481597255 --> 1836221132
2751680898 --> 3481597255
🛈 DocStrings¶
Bases: MarkdownParser
cmarkgfm: bindings to cmark-gfm, the reference GFM implementation.
Not supported: heading_ids, alerts, math, definition_lists.
With raw_html=False, raw HTML is replaced by <!-- raw HTML omitted -->.
Source code in src/mkconvert/parsers/cmarkgfm.py
__init__
¶
__init__(
options: MarkdownOptions | None = None,
*,
on_unsupported: OnUnsupported = "warn",
tagfilter: bool = False,
github_pre_lang: bool = False,
sourcepos: bool = False,
) -> None
Create a cmarkgfm parser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
options
|
MarkdownOptions | None
|
Common options. |
None
|
on_unsupported
|
OnUnsupported
|
See |
'warn'
|
tagfilter
|
bool
|
GFM tag filter: escape |
False
|
github_pre_lang
|
bool
|
GitHub-style |
False
|
sourcepos
|
bool
|
Add |
False
|