MCPcopy Create free account

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

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

↓ 58 callersMethodparse
Parse the source string to a token stream :param src: source string :param env: environment sandbox Parse input string and r
markdown_it/main.py:252
↓ 43 callersMethodpush
Push new token to "stream".
markdown_it/rules_block/state_block.py:119
↓ 30 callersMethodrender
Render markdown string into html. It does all magic for you :). :param src: source string :param env: environment sandbox :re
markdown_it/main.py:275
↓ 26 callersMethodpush
Push new token to "stream". If pending text exists - flush it as text token
markdown_it/rules_inline/state_inline.py:92
↓ 22 callersFunctionisStrSpace
Check if character is a whitespace.
markdown_it/common/utils.py:167
↓ 19 callersFunctioncharCodeAt
Returns the Unicode value of the character at the specified location. @param - index The zero-based index of the desired character. If t
markdown_it/common/utils.py:13
↓ 16 callersMethodis_code_block
Check if line is a code block, i.e. the code block rule is enabled and text is indented by more than 3 spaces.
markdown_it/rules_block/state_block.py:257
↓ 12 callersMethodenable
Enable rules with given names. :param names: name or list of rule names to enable. :param ignoreInvalid: ignore errors when rule not
markdown_it/ruler.py:191
↓ 11 callersMethod_attribute_token
Return the `Token` that is used as the data source for the properties defined below.
markdown_it/tree.py:266
↓ 11 callersMethodgetRules
Return array of active functions (rules) for given chain name. It analyzes rules configuration, compiles caches if not exists and returns resu
markdown_it/ruler.py:255
↓ 10 callersMethoduse
Load specified plugin with given params into current parser instance. (chainable) It's just a sugar to call `plugin(md, params)` with curring
markdown_it/main.py:235
↓ 9 callersMethodat
Replace rule by name with new function & options. :param ruleName: rule name to replace. :param fn: new rule function. :param
markdown_it/ruler.py:110
↓ 9 callersFunctionmake_fence_rule
Create a fence parsing rule with configurable options. :param markers: Tuple of single characters that can be used as fence markers. :param t
markdown_it/rules_block/fence.py:12
↓ 8 callersMethodattrSet
Set `name` attribute to `value`. Override old value if exists.
markdown_it/token.py:98
↓ 8 callersFunctioncharStrAt
Returns the Unicode value of the character at the specified location. @param - index The zero-based index of the desired character. If t
markdown_it/common/utils.py:28
↓ 8 callersMethodisEmpty
.
markdown_it/rules_block/state_block.py:131
↓ 8 callersMethodmake
()
markdown_it/presets/__init__.py:20
↓ 8 callersMethodnormalizeLink
Normalize destination URLs in links :: [label]: destination 'title' ^^^^^^^^^^^
markdown_it/main.py:333
↓ 8 callersMethodparseInline
The same as [[MarkdownIt.parse]] but skip all block rules. :param src: source string :param env: environment sandbox It retu
markdown_it/main.py:289
↓ 8 callersMethodvalidateLink
Validate if the URL link is allowed in output. This validator can prohibit more than really needed to prevent XSS. It's a tradeoff to
markdown_it/main.py:323
↓ 7 callersFunction_make_colon_fence_md
Create a MarkdownIt instance with a colon fence rule (like colon_fence plugin).
tests/test_api/test_make_fence_rule.py:9
↓ 7 callersFunctionescapeHtml
Replace special characters "&", "<", ">" and '"' to HTML-safe sequences.
markdown_it/common/utils.py:139
↓ 7 callersMethodnormalizeLinkText
Normalize autolink content :: <destination> ~~~~~~~~~~~
markdown_it/main.py:343
↓ 6 callersMethodas_dict
Return the token as a dictionary. :param children: Also convert children to dicts :param as_upstream: Ensure the output dictionary is
markdown_it/token.py:125
↓ 6 callersMethodbefore
Add new rule to chain before one with given name. :param beforeName: new rule will be added before this one. :param ruleName: new rul
markdown_it/ruler.py:128
↓ 6 callersMethoddisable
The same as [[MarkdownIt.enable]], but turn specified rules off. (chainable) :param names: rule name or list of rule names to disable.
markdown_it/main.py:192
↓ 5 callersMethod__find__
Find rule index by name
markdown_it/ruler.py:84
↓ 5 callersMethod_make_exact_md
Create MarkdownIt with exact-match colon fence.
tests/test_api/test_make_fence_rule.py:89
↓ 5 callersMethodgetLines
Cut lines range from source.
markdown_it/rules_block/state_block.py:214
↓ 5 callersFunctiongetNextLine
(state: StateBlock, nextLine: int)
markdown_it/rules_block/reference.py:195
↓ 5 callersMethodget_active_rules
Return the active rule names.
markdown_it/ruler.py:273
↓ 5 callersMethodget_active_rules
Return the names of all active rules.
markdown_it/main.py:151
↓ 5 callersMethodrenderAttrs
Render token attributes to string.
markdown_it/renderer.py:173
↓ 5 callersMethodtokenize
Generate tokens for input range.
markdown_it/parser_block.py:60
↓ 5 callersFunctionunescapeAll
(string: str)
markdown_it/common/utils.py:117
↓ 4 callersMethodattrJoin
Join value to existing attribute via space. Or create new attribute if not exists. Useful to operate with token classes.
markdown_it/token.py:106
↓ 4 callersMethodenableOnly
Enable rules with given names, and disable everything else. :param names: name or list of rule names to enable. :param ignoreInvalid:
markdown_it/ruler.py:215
↓ 4 callersFunctionisMdAsciiPunct
Markdown ASCII punctuation characters. :: !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @, [, \\, ], ^, _, `, {, |, },
markdown_it/common/utils.py:238
↓ 4 callersFunctionisPunctChar
Check if character is a punctuation character.
markdown_it/common/utils.py:197
↓ 4 callersFunctionisSpace
Check if character code is a whitespace.
markdown_it/common/utils.py:162
↓ 4 callersFunctionisWhiteSpace
r"""Zs (unicode class) || [\t\f\v\r\n]
markdown_it/common/utils.py:187
↓ 4 callersMethodpush
Push new rule to the end of chain. :param ruleName: new rule will be added to the end of chain. :param fn: new rule function.
markdown_it/ruler.py:176
↓ 4 callersMethodrenderToken
Default token renderer. Can be overridden by custom function :param idx: token index to render :param options: params of par
markdown_it/renderer.py:109
↓ 4 callersFunctionreplaceAt
(string: str, index: int, ch: str)
markdown_it/rules_core/smartquotes.py:17
↓ 4 callersFunctiontype_filter
(tokens, type_)
tests/test_port/test_misc.py:17
↓ 3 callersMethod_set_children_from_tokens
Convert the token stream to a tree structure and set the resulting nodes as children of `self`.
markdown_it/tree.py:198
↓ 3 callersMethodadd_terminator_char
Register a character that stops the ``text`` rule, allowing inline rules to fire. This lets plugins declare which characters their inline rul
markdown_it/parser_inline.py:114
↓ 3 callersMethodafter
Add new rule to chain after one with given name. :param afterName: new rule will be added after this one. :param ruleName: new rule w
markdown_it/ruler.py:152
↓ 3 callersMethodattrGet
Get the value of attribute `name`, or null if it does not exist.
markdown_it/token.py:102
↓ 3 callersMethodattrIndex
(self, name: str)
markdown_it/token.py:80
↓ 3 callersMethoddisable
Disable rules with given names. :param names: name or list of rule names to enable. :param ignoreInvalid: ignore errors when rule not
markdown_it/ruler.py:231
↓ 3 callersFunctionfromCodePoint
Convert ordinal to unicode. Note, in the original Javascript two string characters were required, for codepoints larger than `0xFFFF`. Bu
markdown_it/common/utils.py:78
↓ 3 callersFunctiongetLine
(state: StateBlock, line: int)
markdown_it/rules_block/table.py:20
↓ 3 callersFunctionnormalizeReference
Helper to unify [reference labels].
markdown_it/common/utils.py:253
↓ 3 callersMethodskipCharsStr
Skip character string from given position.
markdown_it/rules_block/state_block.py:182
↓ 3 callersMethodskipSpaces
Skip spaces from given position.
markdown_it/rules_block/state_block.py:148
↓ 2 callersMethod_add_child
Make a child node for `self`.
markdown_it/tree.py:189
↓ 2 callersFunction_postProcess
(state: StateInline, delimiters: list[Delimiter])
markdown_it/rules_inline/emphasis.py:40
↓ 2 callersFunction_postProcess
(state: StateInline, delimiters: list[Delimiter])
markdown_it/rules_inline/strikethrough.py:85
↓ 2 callersMethodconfigure
Batch load of all options and component settings. This is an internal method, and you probably will not need it. But if you will - see
markdown_it/main.py:104
↓ 2 callersFunctionescapedSplit
(string: str)
markdown_it/rules_block/table.py:28
↓ 2 callersFunctionisLinkClose
(string: str)
markdown_it/common/utils.py:312
↓ 2 callersFunctionisLinkOpen
(string: str)
markdown_it/common/utils.py:308
↓ 2 callersFunctionisValidEntityCode
(c: int)
markdown_it/common/utils.py:56
↓ 2 callersFunctionmap_domain
(string: str, fn: Callable[[str], str])
markdown_it/_punycode.py:39
↓ 2 callersMethodpretty
Create an XML style string of the tree.
markdown_it/tree.py:222
↓ 2 callersMethodprocess
Executes core chain rules.
markdown_it/parser_core.py:43
↓ 2 callersFunctionprocessDelimiters
For each opening emphasis-like marker find a matching closing one.
markdown_it/rules_inline/balance_pairs.py:8
↓ 2 callersMethodpushPending
(self)
markdown_it/rules_inline/state_inline.py:84
↓ 2 callersMethodrenderInline
Similar to [[MarkdownIt.render]] but for single paragraph content. :param src: source string :param env: environment sandbox
markdown_it/main.py:309
↓ 2 callersMethodscanDelims
Scan a sequence of emphasis-like markers, and determine whether it can start an emphasis sequence or end an emphasis sequence.
markdown_it/rules_inline/state_inline.py:121
↓ 2 callersFunctionskipBulletListMarker
(state: StateBlock, startLine: int)
markdown_it/rules_block/list.py:12
↓ 2 callersFunctionskipOrderedListMarker
(state: StateBlock, startLine: int)
markdown_it/rules_block/list.py:37
↓ 1 callersMethod__compile__
Build rules lookup cache
markdown_it/ruler.py:91
↓ 1 callersFunction_default_terminator_re
()
markdown_it/parser_inline.py:57
↓ 1 callersFunction_detect_alert
Detect ``[!TYPE]`` on *startLine* (after ``>`` prefix has been stripped). Returns the alert type string (e.g. ``"NOTE"``) or ``None``.
markdown_it/rules_block/blockquote.py:346
↓ 1 callersFunction_detect_task_checkbox
Detect ``[ ]``, ``[x]``, or ``[X]`` at *pos*, followed by whitespace. Returns ``True`` (checked), ``False`` (unchecked), or ``None`` (no match).
markdown_it/rules_block/list.py:386
↓ 1 callersFunction_json_to_fixture
(data: list[dict[str, Any]])
tests/test_cmark_spec/get_cmark_spec.py:48
↓ 1 callersFunctionarrayReplaceAt
Remove element from array and put another array at those position. Useful for some operations with tokens
markdown_it/common/utils.py:46
↓ 1 callersMethodattrItems
Get (key, value) list of attrs.
markdown_it/token.py:89
↓ 1 callersMethodattrPush
Add `[ name, value ]` attribute to list. Init attrs if necessary.
markdown_it/token.py:93
↓ 1 callersFunctionconvert
(filenames: Iterable[str])
markdown_it/cli/parse.py:31
↓ 1 callersFunctionconvert_attrs
Convert Token.attrs set as ``None`` or ``[[key, value], ...]`` to a dict. This improves compatibility with upstream markdown-it.
markdown_it/token.py:9
↓ 1 callersFunctionconvert_file
Parse a Markdown file and dump the output to stdout.
markdown_it/cli/parse.py:48
↓ 1 callersFunctionconvert_stdin
Parse a Markdown file and dump the output to stdout.
markdown_it/cli/parse.py:36
↓ 1 callersMethodcopy
Return a shallow copy of the instance.
markdown_it/token.py:121
↓ 1 callersFunctioncreate_argparser
()
tests/test_cmark_spec/get_cmark_spec.py:17
↓ 1 callersFunctiondecode
(ascii: str)
markdown_it/_punycode.py:35
↓ 1 callersMethodenable
Enable list or rules. (chainable) :param names: rule name or list of rule names to enable. :param ignoreInvalid: set `true` to ignore
markdown_it/main.py:160
↓ 1 callersFunctionencode
(uni: str)
markdown_it/_punycode.py:31
↓ 1 callersMethodfrom_dict
Convert a dict to a Token.
markdown_it/token.py:173
↓ 1 callersMethodget_all_rules
Return the names of all active rules.
markdown_it/main.py:142
↓ 1 callersMethodhighlight
Highlighter function: (content, langName, langAttrs) -> escaped HTML.
markdown_it/utils.py:166
↓ 1 callersMethodinfo
fence infostring
markdown_it/tree.py:315
↓ 1 callersFunctioninteractive
Parse user input, dump to stdout, rinse and repeat. Python REPL style.
markdown_it/cli/parse.py:61
↓ 1 callersFunctionisLetter
(ch: int)
markdown_it/rules_inline/html_inline.py:7
↓ 1 callersFunctionmain
(args: Sequence[str] | None = None)
markdown_it/cli/parse.py:20
↓ 1 callersFunctionmain
Build fuzzers idempotently in a given folder.
scripts/build_fuzzers.py:8
↓ 1 callersFunctionmain
()
tests/fuzz/fuzz_markdown_extended.py:46
↓ 1 callersFunctionmain
()
tests/fuzz/fuzz_markdown.py:16
next →1–100 of 361, ranked by callers