cmarkgfm
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| CmarkgfmParser mkconvert.parsers.cmarkgfm cmarkgfm: bindings to cmark-gfm, the reference GFM implementation. |
🛈 DocStrings¶
Parser using cmarkgfm (GitHub's cmark-gfm, C).
CmarkgfmParser
¶
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
|