MCPcopy Create free account

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

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

Functionmake
()
markdown_it/presets/default.py:6
Functionmake
()
markdown_it/presets/zero.py:9
Methodmake
()
markdown_it/presets/__init__.py:42
Methodmap
Source map info. Format: `tuple[ line_begin, line_end ]`
markdown_it/tree.py:290
Functionmapping
(obj: str)
markdown_it/_punycode.py:53
Methodmarkup
*' or '_' for emphasis, fence string for fence, etc.
markdown_it/tree.py:310
MethodmaxNesting
Internal protection, recursion limit.
markdown_it/utils.py:94
Methodmeta
A place for plugins to store an arbitrary data.
markdown_it/tree.py:320
Functionmock_input
(prompt)
tests/test_cli.py:39
Functionnewline
(state: StateInline, silent: bool)
markdown_it/rules_inline/newline.py:7
Methodnext_sibling
Get the next node in the sequence of siblings. Returns `None` if this is the last sibling.
markdown_it/tree.py:168
Functionnormalize
(state: StateCore)
markdown_it/rules_core/normalize.py:12
FunctionnormalizeLink
Normalize destination URLs in links :: [label]: destination 'title' ^^^^^^^^^^^
markdown_it/common/normalize_url.py:15
FunctionnormalizeLinkText
Normalize autolink content :: <destination> ~~~~~~~~~~~
markdown_it/common/normalize_url.py:40
Functionparagraph
(state: StateBlock, startLine: int, endLine: int, silent: bool)
markdown_it/rules_block/paragraph.py:10
Methodparent
(self: _NodeType)
markdown_it/tree.py:119
Methodparse
Process input string and push block tokens into `outTokens`.
markdown_it/parser_block.py:105
Methodparse
Process input string and push inline tokens into `tokens`
markdown_it/parser_inline.py:206
FunctionparseLinkDestination
(string: str, pos: int, maximum: int)
markdown_it/helpers/parse_link_destination.py:17
FunctionparseLinkLabel
(state: StateInline, start: int, disableNested: bool = False)
markdown_it/helpers/parse_link_label.py:12
FunctionparseLinkTitle
Parse link title within `str` in [start, max] range, or continue previous parsing if `prev_state` is defined (equal to result of last execution).
markdown_it/helpers/parse_link_title.py:25
Functionparser
()
benchmarking/bench_core.py:14
FunctionpostProcess
Walk through delimiter list and replace text tokens with tags.
markdown_it/rules_inline/emphasis.py:96
FunctionpostProcess
Walk through delimiter list and replace text tokens with tags.
markdown_it/rules_inline/strikethrough.py:158
Methodprevious_sibling
Get the previous node in the sequence of siblings. Returns `None` if this is the first sibling.
markdown_it/tree.py:179
Functionpytest_benchmark_update_machine_info
(config, machine_info)
benchmarking/conftest.py:1
Methodquotes
Quote characters.
markdown_it/utils.py:130
Functionread_fixture_file
(path: str | Path)
markdown_it/utils.py:175
Methodrecursive_collect_tokens
(node: _NodeType, token_list: list[Token])
markdown_it/tree.py:93
Functionreference
(state: StateBlock, startLine: int, _endLine: int, silent: bool)
markdown_it/rules_block/reference.py:9
Methodrender
( self, tokens: Sequence[Token], options: OptionsDict, env: EnvType )
markdown_it/renderer.py:23
Methodrender
Takes token stream and generates HTML. :param tokens: list on block tokens to render :param options: params of parser instance
markdown_it/renderer.py:67
Functionreplace
(state: StateCore)
markdown_it/rules_core/replacements.py:113
FunctionreplaceFn
(match: re.Match[str])
markdown_it/rules_core/replacements.py:59
Functionreplacer_func
(match: Match[str])
markdown_it/common/utils.py:118
Functionrun_apidoc
generate apidoc See: https://github.com/rtfd/readthedocs.org/issues/1139
docs/conf.py:94
Functionsetup
Add functions to the Sphinx setup.
docs/conf.py:139
Methodsiblings
Get siblings of the node. Gets the whole group of siblings, including self.
markdown_it/tree.py:142
MethodskipChars
Skip character code from given position.
markdown_it/rules_block/state_block.py:170
MethodskipCharsBack
Skip character code reverse from given position - 1.
markdown_it/rules_block/state_block.py:194
Functionsmartquotes
(state: StateCore)
markdown_it/rules_core/smartquotes.py:194
Methodsoftbreak
( self, tokens: Sequence[Token], idx: int, options: OptionsDict, env: EnvType )
markdown_it/renderer.py:336
Functionspec_text
()
benchmarking/bench_packages.py:8
Functionspec_text
()
benchmarking/bench_core.py:9
Methodsrc
(self)
markdown_it/ruler.py:39
MethodsrcCharCode
(self)
markdown_it/ruler.py:48
FunctionstripEscape
Strip escape \\ characters
markdown_it/common/utils.py:134
Functiontable
(state: StateBlock, startLine: int, endLine: int, silent: bool)
markdown_it/rules_block/table.py:59
Methodtag
html tag name, e.g. \"p\
markdown_it/tree.py:276
Functiontest_add_terminator_char
Test that add_terminator_char stops the text rule on a new character.
tests/test_api/test_plugin_creation.py:94
Functiontest_add_terminator_char_idempotent
add_terminator_char with an already-present char should not rebuild the regex.
tests/test_api/test_plugin_creation.py:117
Functiontest_add_terminator_char_rebuilds
add_terminator_char with a new char should rebuild the regex.
tests/test_api/test_plugin_creation.py:127
Functiontest_alerts
(line, title, input, expected)
tests/test_port/test_fixtures.py:142
Methodtest_basic
(self)
tests/test_api/test_make_fence_rule.py:29
Functiontest_block_after
(capsys)
tests/test_api/test_plugin_creation.py:42
Functiontest_block_at
(capsys)
tests/test_api/test_plugin_creation.py:58
Functiontest_block_before
(capsys)
tests/test_api/test_plugin_creation.py:50
Methodtest_colon_in_info_allowed
Colons in info string should be allowed (unlike backticks in backtick fences).
tests/test_api/test_make_fence_rule.py:44
Functiontest_commonmark_extras
(line, title, input, expected)
tests/test_port/test_fixtures.py:66
Functiontest_commonmark_py
(benchmark, spec_text)
benchmarking/bench_packages.py:39
Functiontest_core_after
(capsys)
tests/test_api/test_plugin_creation.py:70
Functiontest_core_at
(capsys)
tests/test_api/test_plugin_creation.py:86
Functiontest_core_before
(capsys)
tests/test_api/test_plugin_creation.py:78
Methodtest_default_backtick_disallowed
By default, backtick in backtick-fence info string is rejected.
tests/test_api/test_make_fence_rule.py:226
Functiontest_disable
()
tests/test_api/test_main.py:135
Functiontest_disable_code_block
(line, title, input, expected)
tests/test_port/test_fixtures.py:121
Methodtest_disallow_all
Can disallow marker in info for all marker types.
tests/test_api/test_make_fence_rule.py:240
Methodtest_disallow_none
Can allow marker in info for all marker types.
tests/test_api/test_make_fence_rule.py:251
Methodtest_does_not_interfere_with_backtick
Standard backtick fences still work alongside colon fences.
tests/test_api/test_make_fence_rule.py:70
Functiontest_emptyStr
()
tests/test_api/test_main.py:259
Functiontest_empty_env
Test that an empty `env` is mutated, not copied and mutated.
tests/test_api/test_main.py:281
Functiontest_enable
()
tests/test_api/test_main.py:118
Methodtest_exact_match_longer_no_close
Closing fence with more markers does NOT close (exact match required).
tests/test_api/test_make_fence_rule.py:114
Methodtest_exact_match_same_length
Closing fence with same length closes the block.
tests/test_api/test_make_fence_rule.py:106
Methodtest_exact_match_shorter_no_close
Closing fence with fewer markers does NOT close (exact match required).
tests/test_api/test_make_fence_rule.py:124
Functiontest_fatal
(line, title, input, expected)
tests/test_port/test_fixtures.py:88
Functiontest_file
(file_regression)
tests/test_cmark_spec/test_spec.py:16
Functiontest_fragments_join_merges_adjacent_text_tokens
fragments_join should merge runs of adjacent text tokens into one. Underscore characters flanked by word characters (e.g. ``a_b``) are not va
tests/test_api/test_main.py:307
Functiontest_fuzzing
(raw_input, expected)
tests/test_fuzzer.py:22
Functiontest_get_rules
()
tests/test_api/test_main.py:5
Functiontest_gfm_like2_alert_token_map
()
tests/test_api/test_main.py:111
Functiontest_gfm_like2_tasklists_editable
()
tests/test_api/test_main.py:95
Functiontest_highlight_arguments
()
tests/test_port/test_misc.py:4
Functiontest_inline_after
(capsys)
tests/test_api/test_plugin_creation.py:13
Functiontest_inline_at
(capsys)
tests/test_api/test_plugin_creation.py:29
Functiontest_inline_before
(capsys)
tests/test_api/test_plugin_creation.py:21
Functiontest_inline_definitions
(data_regression)
tests/test_port/test_references.py:47
Functiontest_interactive
()
tests/test_cli.py:38
Functiontest_interactive_render
()
tests/test_cli.py:83
Functiontest_issue_fixes
(line, title, input, expected)
tests/test_port/test_fixtures.py:152
Functiontest_linkify
(line, title, input, expected)
tests/test_port/test_fixtures.py:15
Functiontest_load_presets
()
tests/test_api/test_main.py:49
Methodtest_longer_closing
Closing fence can be longer than opening (default, not exact_match).
tests/test_api/test_make_fence_rule.py:51
Functiontest_main_no_args_is_interactive
()
tests/test_cli.py:47
Functiontest_markdown_it_py
(benchmark, spec_text)
benchmarking/bench_packages.py:13
Functiontest_markdown_it_pyrs
(benchmark, spec_text)
benchmarking/bench_packages.py:22
Methodtest_min_markers_custom
Custom min_markers allows changing the threshold.
tests/test_api/test_make_fence_rule.py:210
Methodtest_min_markers_default
Default min_markers is 3.
tests/test_api/test_make_fence_rule.py:203
Functiontest_mistletoe
(benchmark, spec_text)
benchmarking/bench_packages.py:63
Functiontest_mistune
(benchmark, spec_text)
benchmarking/bench_packages.py:31
← previousnext →201–300 of 361, ranked by callers