MCPcopy Create free account

hub / github.com/Python-Markdown/markdown / functions

Functions1,385 in github.com/Python-Markdown/markdown

↓ 1 callersMethod__processElementText
Process placeholders in `Element.text` or `Element.tail` of Elements popped from `self.stashed_nodes`. Arguments:
markdown/treeprocessors.py:143
↓ 1 callersMethod__stashNode
Add node to stash.
markdown/treeprocessors.py:114
↓ 1 callersMethod_addPatterns
( self, md: Markdown, patterns: Sequence[tuple[str, Sequence[int | str | etree.Element
markdown/extensions/smarty.py:196
↓ 1 callersMethod_build_empty_row
Build an empty row.
markdown/extensions/tables.py:118
↓ 1 callersMethod_build_patterns
Build regular expression patterns.
markdown/inlinepatterns.py:584
↓ 1 callersMethod_build_row
Given a row of text, build table cells.
markdown/extensions/tables.py:126
↓ 1 callersMethod_escape
basic html escaping
markdown/extensions/fenced_code.py:198
↓ 1 callersFunction_escape_attrib
(text: str)
markdown/serializers.py:104
↓ 1 callersFunction_escape_cdata
(text)
markdown/serializers.py:86
↓ 1 callersMethod_getMeta
Return meta data or `config` data.
markdown/extensions/wikilinks.py:89
↓ 1 callersFunction_get_stack_depth
Get current stack depth, performantly.
markdown/util.py:166
↓ 1 callersFunction_normalize_whitespace
Normalize whitespace for a string of HTML using `tidylib`.
markdown/test_tools.py:129
↓ 1 callersMethod_parseHeader
Determines language of a code block from shebang line and whether the said line should be removed or left in place. If the shebang li
markdown/extensions/codehilite.py:195
↓ 1 callersMethod_prettifyETree
Recursively add line breaks to `ElementTree` children.
markdown/treeprocessors.py:425
↓ 1 callersFunction_serialize_html
(write: Callable[[str], None], elem: Element, format: Literal["html", "xhtml"])
markdown/serializers.py:140
↓ 1 callersMethod_split
split a row of text with some code into a list of cells.
markdown/extensions/tables.py:155
↓ 1 callersMethod_wrap_code
(self, source)
tests/test_syntax/extensions/test_fenced_code.py:917
↓ 1 callersMethodaddFootnoteRef
Store a footnote reference id in order of appearance.
markdown/extensions/footnotes.py:181
↓ 1 callersMethodadd_anchor
(self, c: etree.Element, elem_id: str)
markdown/extensions/toc.py:328
↓ 1 callersMethodadd_duplicates
Adjust current `li` and add the duplicates: `fnref2`, `fnref3`, etc.
markdown/extensions/footnotes.py:382
↓ 1 callersMethodadd_permalink
(self, c: etree.Element, elem_id: str)
markdown/extensions/toc.py:340
↓ 1 callersMethodadd_region
Add region.
markdown/inlinepatterns.py:847
↓ 1 callersMethodassertParses
(self, value, result)
tests/test_apis.py:771
↓ 1 callersMethodassign_attrs
Assign `attrs` to element. If the `attrs_string` has an extra closing curly brace, the remaining text is returned. The `strict` arg
markdown/extensions/attr_list.py:182
↓ 1 callersMethodbackslash_unescape
Return text with backslash escapes undone (backslashes are restored).
markdown/inlinepatterns.py:549
↓ 1 callersMethodbuildExtension
Build an extension which registers `fakeSerializer`.
tests/test_apis.py:631
↓ 1 callersFunctionbuild_block_parser
Build the default block parser used by Markdown.
markdown/blockprocessors.py:42
↓ 1 callersMethodbuild_extension
Build extension from a string name, then return an instance using the given `configs`. Arguments: ext_name: Name of exte
markdown/core.py:197
↓ 1 callersFunctionbuild_inlinepatterns
Build the default set of inline patterns for Markdown. The order in which processors and/or patterns are applied is very important - e.g. if
markdown/inlinepatterns.py:54
↓ 1 callersMethodbuild_parser
Build the parser from the various parts. Assigns a value to each of the following attributes on the class instance: * **`Ma
markdown/core.py:133
↓ 1 callersFunctionbuild_postprocessors
Build the default postprocessors for Markdown.
markdown/postprocessors.py:39
↓ 1 callersFunctionbuild_preprocessors
Build and return the default set of preprocessors used by Markdown.
markdown/preprocessors.py:37
↓ 1 callersMethodbuild_toc_div
Return a string div given a toc list.
markdown/extensions/toc.py:356
↓ 1 callersFunctionbuild_treeprocessors
Build the default `treeprocessors` for Markdown.
markdown/treeprocessors.py:39
↓ 1 callersMethodclean
Remove `>` from beginning of a line.
markdown/blockprocessors.py:316
↓ 1 callersFunctioncode_escape
HTML escape a string of code.
markdown/util.py:155
↓ 1 callersMethodcode_unescape
Unescape code.
markdown/extensions/codehilite.py:259
↓ 1 callersMethodconvertFile
Read Markdown text from a file or stream and write HTML output to a file or stream. Decodes the input file using the provided encodi
markdown/core.py:401
↓ 1 callersMethodcreate_element
Create an `abbr` element.
markdown/extensions/abbr.py:98
↓ 1 callersMethodcreate_item
Create a new `li` and parse the block with it as the parent.
markdown/blockprocessors.py:217
↓ 1 callersFunctiondeprecated
Raise a [`DeprecationWarning`][] when wrapped function/method is called. Usage: ```python @deprecated("This method will be removed
markdown/util.py:111
↓ 1 callersFunctiondequote
Remove quotes from around a string.
markdown/inlinepatterns.py:148
↓ 1 callersMethoddetab
Remove a tab from the front of each line of the given text.
markdown/blockprocessors.py:85
↓ 1 callersMethoddetectTabbed
Find indented text and remove indent before further processing. Returns: A list of blocks with indentation removed.
markdown/extensions/footnotes.py:305
↓ 1 callersMethodeducateAngledQuotes
(self, md: Markdown)
markdown/extensions/smarty.py:225
↓ 1 callersMethodeducateDashes
(self, md: Markdown)
markdown/extensions/smarty.py:209
↓ 1 callersMethodeducateEllipses
(self, md: Markdown)
markdown/extensions/smarty.py:219
↓ 1 callersMethodeducateQuotes
(self, md: Markdown)
markdown/extensions/smarty.py:235
↓ 1 callersFunctionescape_cdata
Escape character data.
markdown/extensions/toc.py:141
↓ 1 callersMethodevalId
Evaluate the id portion of `[ref][id]`. If `[ref][]` use `[ref]`.
markdown/inlinepatterns.py:1255
↓ 1 callersMethodexec
Execute code in namespace. If code outputs to stdout, that output is captured and returned. If nothing it output to stdout,
tools/superfences_formaters.py:97
↓ 1 callersMethodextendMarkdown
Register the processor. | Class Instance | Registry
markdown/extensions/toc.py:498
↓ 1 callersMethodfindFootnotesPlaceholder
Return ElementTree Element that contains Footnote placeholder.
markdown/extensions/footnotes.py:157
↓ 1 callersMethodfind_code_spans
Find code spans.
markdown/inlinepatterns.py:416
↓ 1 callersMethodgetCompiledRegExp
Return a compiled regular expression.
markdown/inlinepatterns.py:214
↓ 1 callersMethodgetConfigInfo
Return descriptions of all configuration options. Returns: All descriptions of configuration options.
markdown/extensions/__init__.py:85
↓ 1 callersMethodgetTempFiles
Return the file names for two temp files.
tests/test_apis.py:90
↓ 1 callersMethodget_cached_result
Get a cached result.
markdown/inlinepatterns.py:804
↓ 1 callersMethodget_class_and_title
(self, match: re.Match[str])
markdown/extensions/admonition.py:176
↓ 1 callersMethodget_element
Return element from `treebuilder` and reset `treebuilder` for later use.
markdown/extensions/md_in_html.py:83
↓ 1 callersFunctionget_frontmatter
Get front matter from string.
tools/superfences_formaters.py:41
↓ 1 callersMethodget_items
Break a block into list items.
markdown/blockprocessors.py:418
↓ 1 callersMethodget_level
Get level of indentation based on list level.
markdown/blockprocessors.py:222
↓ 1 callersMethodget_match
Get match.
markdown/inlinepatterns.py:825
↓ 1 callersMethodget_num_duplicates
Get the number of duplicate refs of the footnote.
markdown/extensions/footnotes.py:402
↓ 1 callersMethodget_state
Return state from tag and `markdown` attribute. One of 'block', 'span', or 'off'.
markdown/extensions/md_in_html.py:89
↓ 1 callersMethodhandleAttributes
Set attributes and return text without definitions.
markdown/extensions/legacy_attrs.py:58
↓ 1 callersMethodhandleMatch
Return a ElementTree element from the given match. Subclasses should override this method. Arguments: m: A match object
markdown/inlinepatterns.py:218
↓ 1 callersMethodhandle_attrs
Return tuple: `(id, [list, of, classes], {configs})`
markdown/extensions/fenced_code.py:174
↓ 1 callersMethodhandle_comment
(self, data: str)
markdown/htmlparser.py:334
↓ 1 callersMethodhandle_duplicates
Find duplicate footnotes and format and add the duplicates.
markdown/extensions/footnotes.py:408
↓ 1 callersMethodhandle_starttag
(self, tag: str, attrs: Sequence[tuple[str, str]])
markdown/htmlparser.py:222
↓ 1 callersMethodinline_close_follows
Return `True` if an open inline tag is closed in the same paragraph after the comment `text`.
markdown/htmlparser.py:284
↓ 1 callersMethodisblocklevel
Check is block of HTML is block-level.
markdown/postprocessors.py:95
↓ 1 callersFunctionisheader
(elem: Element)
markdown/extensions/attr_list.py:95
↓ 1 callersMethoditer_element
Recursively iterate over elements, run regex on text and wrap matches in `abbr` tags.
markdown/extensions/abbr.py:105
↓ 1 callersMethoditerparent
Iterator wrapper to get allowed parent and child all at once.
markdown/extensions/toc.py:289
↓ 1 callersMethodmakeFootnotesDiv
Return `div` of footnotes as `etree` Element.
markdown/extensions/footnotes.py:204
↓ 1 callersMethodmakeTag
Return an `a` [`Element`][xml.etree.ElementTree.Element].
markdown/inlinepatterns.py:1271
↓ 1 callersFunctionmarkdown
Convert a markdown string to HTML and return HTML as a Unicode string. This is a shortcut function for [`Markdown`][markdown.Markdown] class
markdown/core.py:484
↓ 1 callersFunctionnest_toc_tokens
Given an unsorted list with errors and skips, return a nested one. [{'level': 1}, {'level': 2}] => [{'level': 1, 'children':
markdown/extensions/toc.py:196
↓ 1 callersMethodparse_element_content
Recursively parse the text content of an `etree` Element as Markdown. Any block level elements generated from the Markdown will be i
markdown/extensions/md_in_html.py:328
↓ 1 callersFunctionremove_fnrefs
Remove footnote references from a copy of the element, if any are present.
markdown/extensions/toc.py:173
↓ 1 callersFunctionrender_inner_html
Fully render inner html of an `etree` element as a string.
markdown/extensions/toc.py:160
↓ 1 callersMethodreorder_footnotes
(self, parent: etree.Element)
markdown/extensions/footnotes.py:467
↓ 1 callersMethodreplace_marker
Replace marker with elem.
markdown/extensions/toc.py:300
↓ 1 callersMethodreset
Clear footnotes on reset, and prepare for distinct document.
markdown/extensions/footnotes.py:128
↓ 1 callersMethodrule_of_3
Check the "rule of 3" which prevents an open delimiter from pairing with an ambiguous one. The original lengths of the delimiter mus
markdown/inlinepatterns.py:816
↓ 1 callersFunctionrun
Run Markdown from the command line.
markdown/__main__.py:130
↓ 1 callersMethodrun
Add line breaks to `Element` object and its children.
markdown/treeprocessors.py:439
↓ 1 callersMethodsanitize_name
Sanitize name as 'an XML Name, minus the `:`.' See <https://www.w3.org/TR/REC-xml-names/#NT-NCName>.
markdown/extensions/attr_list.py:219
↓ 1 callersMethodsetConfigs
Loop through a collection of configuration options, passing each to [`setConfig`][markdown.extensions.Extension.setConfig].
markdown/extensions/__init__.py:115
↓ 1 callersMethodsetFootnote
Store a footnote for later retrieval.
markdown/extensions/footnotes.py:177
↓ 1 callersMethodset_level
Adjust header level according to base level.
markdown/extensions/toc.py:321
↓ 1 callersMethodset_output_format
Set the output format for the class instance. Arguments: format: Must be a known value in `Markdown.output_formats`.
markdown/core.py:286
↓ 1 callersFunctionslugify
Slugify a string, to make it URL friendly.
markdown/extensions/toc.py:39
↓ 1 callersMethodtest
(self)
markdown/test_tools.py:150
↓ 1 callersMethodtype
Return class name, to define pattern type
markdown/inlinepatterns.py:231
↓ 1 callersMethodunique_ref
Get a unique reference if there are duplicates.
markdown/extensions/footnotes.py:136
Method__contains__
(self, item: str | _T)
markdown/util.py:315
← previousnext →101–200 of 1,385, ranked by callers