MCPcopy Create free account

hub / github.com/executablebooks/markdown-it-py / functions

Functions361 in github.com/executablebooks/markdown-it-py

↓ 1 callersFunctionmarkTightParagraphs
(state: StateBlock, idx: int)
markdown_it/rules_block/list.py:88
↓ 1 callersFunctionparse_args
Parse input CLI arguments.
markdown_it/cli/parse.py:82
↓ 1 callersFunctionprint_heading
()
markdown_it/cli/parse.py:120
↓ 1 callersFunctionprocess_inlines
(tokens: list[Token], state: StateCore)
markdown_it/rules_core/smartquotes.py:24
↓ 1 callersMethodrenderInline
The same as ``render``, but for single token of `inline` type. :param tokens: list on block tokens to render :param options: params o
markdown_it/renderer.py:90
↓ 1 callersMethodrenderInlineAsText
Special kludge for image `alt` attributes to conform CommonMark spec. Don't try to use it! Spec requires to show `alt` content with stripped
markdown_it/renderer.py:182
↓ 1 callersFunctionreplaceEntityPattern
Convert HTML entity patterns, see https://spec.commonmark.org/0.30/#entity-references
markdown_it/common/utils.py:98
↓ 1 callersFunctionreplace_rare
(inlineTokens: list[Token])
markdown_it/rules_core/replacements.py:77
↓ 1 callersFunctionreplace_scoped
(inlineTokens: list[Token])
markdown_it/rules_core/replacements.py:63
↓ 1 callersMethodreset_rules
A context manager, that will reset the current enabled rules on exit.
markdown_it/main.py:216
↓ 1 callersMethodset
Set parser options (in the same format as in constructor). Probably, you will never need it, but you can change options after constructor call
markdown_it/main.py:94
↓ 1 callersMethodskipCharsStrBack
Skip character string reverse from given position - 1.
markdown_it/rules_block/state_block.py:204
↓ 1 callersMethodskipEmptyLines
.
markdown_it/rules_block/state_block.py:135
↓ 1 callersMethodskipSpacesBack
Skip spaces from given position in reverse.
markdown_it/rules_block/state_block.py:160
↓ 1 callersMethodskipToken
Skip single token by running all rules in validation mode; returns `True` if any rule reported success
markdown_it/parser_inline.py:132
↓ 1 callersMethodto_tokens
Recover the linear token stream.
markdown_it/tree.py:90
↓ 1 callersMethodtokenize
Generate tokens for input range.
markdown_it/parser_inline.py:174
↓ 1 callersMethodwalk
Recursively yield all descendant nodes in the tree starting at self. The order mimics the order of the underlying linear token stream
markdown_it/tree.py:244
FunctionTestOneInput
(data)
tests/fuzz/fuzz_markdown_extended.py:12
FunctionTestOneInput
(data)
tests/fuzz/fuzz_markdown.py:8
Method__delitem__
(self, key: str)
markdown_it/utils.py:78
Method__getitem__
(self, key: str)
markdown_it/utils.py:72
Method__getitem__
(self: _NodeType, item: int)
markdown_it/tree.py:82
Method__getitem__
(self, name: Literal["inline"])
markdown_it/main.py:72
Method__init__
(self, parser: Any = None)
markdown_it/renderer.py:60
Method__init__
(self, options: OptionsType)
markdown_it/utils.py:69
Method__init__
(self)
markdown_it/parser_block.py:55
Method__init__
Initialize a `SyntaxTreeNode` from a token stream. If `create_root` is True, create a root node for the document.
markdown_it/tree.py:36
Method__init__
(self)
markdown_it/parser_inline.py:99
Method__init__
(self, src: str, md: MarkdownIt, env: EnvType)
markdown_it/ruler.py:33
Method__init__
(self)
markdown_it/ruler.py:76
Method__init__
(self)
markdown_it/parser_core.py:38
Method__init__
Main parser class :param config: name of configuration to load or a pre-defined dictionary :param options_update: dictionary that wil
markdown_it/main.py:34
Method__init__
( self, src: str, md: MarkdownIt, env: EnvType, tokens: list[Token] |
markdown_it/rules_core/state_core.py:14
Method__init__
( self, src: str, md: MarkdownIt, env: EnvType, outTokens: list[Token] )
markdown_it/rules_inline/state_inline.py:45
Method__init__
(self)
markdown_it/helpers/parse_link_destination.py:11
Method__init__
(self)
markdown_it/helpers/parse_link_title.py:9
Method__init__
( self, src: str, md: MarkdownIt, env: EnvType, tokens: list[Token] )
markdown_it/rules_block/state_block.py:15
Method__iter__
(self)
markdown_it/utils.py:81
Method__len__
(self)
markdown_it/utils.py:84
Method__post_init__
(self)
markdown_it/token.py:77
Method__repr__
(self)
markdown_it/utils.py:87
Method__repr__
(self)
markdown_it/tree.py:78
Method__repr__
(self)
markdown_it/main.py:68
Method__repr__
(self)
markdown_it/rules_inline/state_inline.py:78
Method__repr__
(self)
markdown_it/rules_block/state_block.py:113
Method__setitem__
(self, key: str, value: Any)
markdown_it/utils.py:75
Method__str__
(self)
markdown_it/utils.py:90
Method__str__
(self)
markdown_it/helpers/parse_link_title.py:21
Function_fence_rule
( state: StateBlock, startLine: int, endLine: int, silent: bool )
markdown_it/rules_block/fence.py:45
Function_plugin
(_md: MarkdownIt)
tests/test_api/test_plugin_creation.py:14
Methodadd_render_rule
Add a rule for rendering a particular Token type. Only applied when ``renderer.__output__ == fmt``
markdown_it/main.py:225
MethodattrGet
Get the value of attribute `name`, or null if it does not exist.
markdown_it/tree.py:285
Methodattrs
Html attributes.
markdown_it/tree.py:281
Functionautolink
(state: StateInline, silent: bool)
markdown_it/rules_inline/autolink.py:12
Functionbacktick
(state: StateInline, silent: bool)
markdown_it/rules_inline/backticks.py:9
Functionblock
(state: StateCore)
markdown_it/rules_core/block.py:5
Methodblock
True for block-level tokens, false for inline tokens.
markdown_it/tree.py:325
Functionblock_rule
(state, startLine, endLine, silent)
tests/test_api/test_plugin_creation.py:37
Functionblockquote
(state: StateBlock, startLine: int, endLine: int, silent: bool)
markdown_it/rules_block/blockquote.py:12
Methodbreaks
Convert newlines in paragraphs into <br>.
markdown_it/utils.py:148
Methodchildren
(self: _NodeType)
markdown_it/tree.py:111
Functioncode
(state: StateBlock, startLine: int, endLine: int, silent: bool)
markdown_it/rules_block/code.py:10
Methodcode_block
( self, tokens: Sequence[Token], idx: int, options: OptionsDict, env:
markdown_it/renderer.py:244
Methodcode_inline
( self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType )
markdown_it/renderer.py:232
Methodcontent
In a case of self-closing tag (code, html, fence, etc.), it has contents of this tag.
markdown_it/tree.py:304
Functioncore_rule
(state)
tests/test_api/test_plugin_creation.py:66
Functionentity
(state: StateInline, silent: bool)
markdown_it/rules_inline/entity.py:12
Functionescape
Process escaped chars and hardbreaks.
markdown_it/rules_inline/escape.py:9
FunctionescapeRE
(string: str)
markdown_it/common/utils.py:154
Methodfence
( self, tokens: Sequence[Token], idx: int, options: OptionsDict, env:
markdown_it/renderer.py:261
Functionfragments_join
Clean up tokens after emphasis and strikethrough postprocessing: merge adjacent text nodes into one and re-calculate all token levels Th
markdown_it/rules_inline/fragments_join.py:4
Methodget_all_rules
Return all available rule names.
markdown_it/ruler.py:269
Methodhardbreak
( self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType )
markdown_it/renderer.py:331
Functionheading
(state: StateBlock, startLine: int, endLine: int, silent: bool)
markdown_it/rules_block/heading.py:13
Methodhidden
If it's true, ignore this element when rendering. Used for tight lists to hide paragraphs.
markdown_it/tree.py:330
Functionhighlight_func
(str_, lang, attrs)
tests/test_port/test_misc.py:5
Functionhr
(state: StateBlock, startLine: int, endLine: int, silent: bool)
markdown_it/rules_block/hr.py:14
Methodhtml
Enable HTML tags in source.
markdown_it/utils.py:103
Functionhtml_block
(state: StateBlock, startLine: int, endLine: int, silent: bool)
markdown_it/rules_block/html_block.py:34
Methodhtml_block
( self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType )
markdown_it/renderer.py:348
Functionhtml_inline
(state: StateInline, silent: bool)
markdown_it/rules_inline/html_inline.py:13
Methodhtml_inline
( self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType )
markdown_it/renderer.py:353
Functionimage
(state: StateInline, silent: bool)
markdown_it/rules_inline/image.py:9
Methodimage
( self, tokens: Sequence[Token], idx: int, options: OptionsDict, env:
markdown_it/renderer.py:313
Functioninline
Parse inlines
markdown_it/rules_core/inline.py:4
Functioninline_rule
(state, silent)
tests/test_api/test_plugin_creation.py:8
Methodis_nested
Is this node nested?. Returns `True` if the node represents a `Token` pair and tokens in the sequence between them, where `Token.nest
markdown_it/tree.py:132
Methodis_root
Is the node a special root node?
markdown_it/tree.py:127
MethodlangPrefix
CSS language prefix for fenced blocks.
markdown_it/utils.py:157
Methodlevel
nesting level, the same as `state.level`
markdown_it/tree.py:299
Functionlheading
(state: StateBlock, startLine: int, endLine: int, silent: bool)
markdown_it/rules_block/lheading.py:9
Functionlink
(state: StateInline, silent: bool)
markdown_it/rules_inline/link.py:7
Functionlink_pairs
(state: StateInline)
markdown_it/rules_inline/balance_pairs.py:127
Functionlinkify
Rule for identifying plain-text links.
markdown_it/rules_core/linkify.py:15
Functionlinkify
Rule for identifying plain-text links.
markdown_it/rules_inline/linkify.py:11
Methodlinkify
Enable autoconversion of URL-like texts to links.
markdown_it/utils.py:112
Functionlist_block
(state: StateBlock, startLine: int, endLine: int, silent: bool)
markdown_it/rules_block/list.py:101
Methodlist_item_open
( self, tokens: Sequence[Token], idx: int, options: OptionsDict, env:
markdown_it/renderer.py:212
Functionmake
()
markdown_it/presets/commonmark.py:13
← previousnext →101–200 of 361, ranked by callers