Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Python-Markdown/markdown
/ functions
Functions
1,385 in github.com/Python-Markdown/markdown
⨍
Functions
1,385
◇
Types & classes
197
↳
Endpoints
1
↓ 1 callers
Method
__processElementText
Process placeholders in `Element.text` or `Element.tail` of Elements popped from `self.stashed_nodes`. Arguments:
markdown/treeprocessors.py:143
↓ 1 callers
Method
__stashNode
Add node to stash.
markdown/treeprocessors.py:114
↓ 1 callers
Method
_addPatterns
( self, md: Markdown, patterns: Sequence[tuple[str, Sequence[int | str | etree.Element
markdown/extensions/smarty.py:196
↓ 1 callers
Method
_build_empty_row
Build an empty row.
markdown/extensions/tables.py:118
↓ 1 callers
Method
_build_patterns
Build regular expression patterns.
markdown/inlinepatterns.py:584
↓ 1 callers
Method
_build_row
Given a row of text, build table cells.
markdown/extensions/tables.py:126
↓ 1 callers
Method
_escape
basic html escaping
markdown/extensions/fenced_code.py:198
↓ 1 callers
Function
_escape_attrib
(text: str)
markdown/serializers.py:104
↓ 1 callers
Function
_escape_cdata
(text)
markdown/serializers.py:86
↓ 1 callers
Method
_getMeta
Return meta data or `config` data.
markdown/extensions/wikilinks.py:89
↓ 1 callers
Function
_get_stack_depth
Get current stack depth, performantly.
markdown/util.py:166
↓ 1 callers
Function
_normalize_whitespace
Normalize whitespace for a string of HTML using `tidylib`.
markdown/test_tools.py:129
↓ 1 callers
Method
_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 callers
Method
_prettifyETree
Recursively add line breaks to `ElementTree` children.
markdown/treeprocessors.py:425
↓ 1 callers
Function
_serialize_html
(write: Callable[[str], None], elem: Element, format: Literal["html", "xhtml"])
markdown/serializers.py:140
↓ 1 callers
Method
_split
split a row of text with some code into a list of cells.
markdown/extensions/tables.py:155
↓ 1 callers
Method
_wrap_code
(self, source)
tests/test_syntax/extensions/test_fenced_code.py:917
↓ 1 callers
Method
addFootnoteRef
Store a footnote reference id in order of appearance.
markdown/extensions/footnotes.py:181
↓ 1 callers
Method
add_anchor
(self, c: etree.Element, elem_id: str)
markdown/extensions/toc.py:328
↓ 1 callers
Method
add_duplicates
Adjust current `li` and add the duplicates: `fnref2`, `fnref3`, etc.
markdown/extensions/footnotes.py:382
↓ 1 callers
Method
add_permalink
(self, c: etree.Element, elem_id: str)
markdown/extensions/toc.py:340
↓ 1 callers
Method
add_region
Add region.
markdown/inlinepatterns.py:847
↓ 1 callers
Method
assertParses
(self, value, result)
tests/test_apis.py:771
↓ 1 callers
Method
assign_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 callers
Method
backslash_unescape
Return text with backslash escapes undone (backslashes are restored).
markdown/inlinepatterns.py:549
↓ 1 callers
Method
buildExtension
Build an extension which registers `fakeSerializer`.
tests/test_apis.py:631
↓ 1 callers
Function
build_block_parser
Build the default block parser used by Markdown.
markdown/blockprocessors.py:42
↓ 1 callers
Method
build_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 callers
Function
build_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 callers
Method
build_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 callers
Function
build_postprocessors
Build the default postprocessors for Markdown.
markdown/postprocessors.py:39
↓ 1 callers
Function
build_preprocessors
Build and return the default set of preprocessors used by Markdown.
markdown/preprocessors.py:37
↓ 1 callers
Method
build_toc_div
Return a string div given a toc list.
markdown/extensions/toc.py:356
↓ 1 callers
Function
build_treeprocessors
Build the default `treeprocessors` for Markdown.
markdown/treeprocessors.py:39
↓ 1 callers
Method
clean
Remove `>` from beginning of a line.
markdown/blockprocessors.py:316
↓ 1 callers
Function
code_escape
HTML escape a string of code.
markdown/util.py:155
↓ 1 callers
Method
code_unescape
Unescape code.
markdown/extensions/codehilite.py:259
↓ 1 callers
Method
convertFile
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 callers
Method
create_element
Create an `abbr` element.
markdown/extensions/abbr.py:98
↓ 1 callers
Method
create_item
Create a new `li` and parse the block with it as the parent.
markdown/blockprocessors.py:217
↓ 1 callers
Function
deprecated
Raise a [`DeprecationWarning`][] when wrapped function/method is called. Usage: ```python @deprecated("This method will be removed
markdown/util.py:111
↓ 1 callers
Function
dequote
Remove quotes from around a string.
markdown/inlinepatterns.py:148
↓ 1 callers
Method
detab
Remove a tab from the front of each line of the given text.
markdown/blockprocessors.py:85
↓ 1 callers
Method
detectTabbed
Find indented text and remove indent before further processing. Returns: A list of blocks with indentation removed.
markdown/extensions/footnotes.py:305
↓ 1 callers
Method
educateAngledQuotes
(self, md: Markdown)
markdown/extensions/smarty.py:225
↓ 1 callers
Method
educateDashes
(self, md: Markdown)
markdown/extensions/smarty.py:209
↓ 1 callers
Method
educateEllipses
(self, md: Markdown)
markdown/extensions/smarty.py:219
↓ 1 callers
Method
educateQuotes
(self, md: Markdown)
markdown/extensions/smarty.py:235
↓ 1 callers
Function
escape_cdata
Escape character data.
markdown/extensions/toc.py:141
↓ 1 callers
Method
evalId
Evaluate the id portion of `[ref][id]`. If `[ref][]` use `[ref]`.
markdown/inlinepatterns.py:1255
↓ 1 callers
Method
exec
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 callers
Method
extendMarkdown
Register the processor. | Class Instance | Registry
markdown/extensions/toc.py:498
↓ 1 callers
Method
findFootnotesPlaceholder
Return ElementTree Element that contains Footnote placeholder.
markdown/extensions/footnotes.py:157
↓ 1 callers
Method
find_code_spans
Find code spans.
markdown/inlinepatterns.py:416
↓ 1 callers
Method
getCompiledRegExp
Return a compiled regular expression.
markdown/inlinepatterns.py:214
↓ 1 callers
Method
getConfigInfo
Return descriptions of all configuration options. Returns: All descriptions of configuration options.
markdown/extensions/__init__.py:85
↓ 1 callers
Method
getTempFiles
Return the file names for two temp files.
tests/test_apis.py:90
↓ 1 callers
Method
get_cached_result
Get a cached result.
markdown/inlinepatterns.py:804
↓ 1 callers
Method
get_class_and_title
(self, match: re.Match[str])
markdown/extensions/admonition.py:176
↓ 1 callers
Method
get_element
Return element from `treebuilder` and reset `treebuilder` for later use.
markdown/extensions/md_in_html.py:83
↓ 1 callers
Function
get_frontmatter
Get front matter from string.
tools/superfences_formaters.py:41
↓ 1 callers
Method
get_items
Break a block into list items.
markdown/blockprocessors.py:418
↓ 1 callers
Method
get_level
Get level of indentation based on list level.
markdown/blockprocessors.py:222
↓ 1 callers
Method
get_match
Get match.
markdown/inlinepatterns.py:825
↓ 1 callers
Method
get_num_duplicates
Get the number of duplicate refs of the footnote.
markdown/extensions/footnotes.py:402
↓ 1 callers
Method
get_state
Return state from tag and `markdown` attribute. One of 'block', 'span', or 'off'.
markdown/extensions/md_in_html.py:89
↓ 1 callers
Method
handleAttributes
Set attributes and return text without definitions.
markdown/extensions/legacy_attrs.py:58
↓ 1 callers
Method
handleMatch
Return a ElementTree element from the given match. Subclasses should override this method. Arguments: m: A match object
markdown/inlinepatterns.py:218
↓ 1 callers
Method
handle_attrs
Return tuple: `(id, [list, of, classes], {configs})`
markdown/extensions/fenced_code.py:174
↓ 1 callers
Method
handle_comment
(self, data: str)
markdown/htmlparser.py:334
↓ 1 callers
Method
handle_duplicates
Find duplicate footnotes and format and add the duplicates.
markdown/extensions/footnotes.py:408
↓ 1 callers
Method
handle_starttag
(self, tag: str, attrs: Sequence[tuple[str, str]])
markdown/htmlparser.py:222
↓ 1 callers
Method
inline_close_follows
Return `True` if an open inline tag is closed in the same paragraph after the comment `text`.
markdown/htmlparser.py:284
↓ 1 callers
Method
isblocklevel
Check is block of HTML is block-level.
markdown/postprocessors.py:95
↓ 1 callers
Function
isheader
(elem: Element)
markdown/extensions/attr_list.py:95
↓ 1 callers
Method
iter_element
Recursively iterate over elements, run regex on text and wrap matches in `abbr` tags.
markdown/extensions/abbr.py:105
↓ 1 callers
Method
iterparent
Iterator wrapper to get allowed parent and child all at once.
markdown/extensions/toc.py:289
↓ 1 callers
Method
makeFootnotesDiv
Return `div` of footnotes as `etree` Element.
markdown/extensions/footnotes.py:204
↓ 1 callers
Method
makeTag
Return an `a` [`Element`][xml.etree.ElementTree.Element].
markdown/inlinepatterns.py:1271
↓ 1 callers
Function
markdown
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 callers
Function
nest_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 callers
Method
parse_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 callers
Function
remove_fnrefs
Remove footnote references from a copy of the element, if any are present.
markdown/extensions/toc.py:173
↓ 1 callers
Function
render_inner_html
Fully render inner html of an `etree` element as a string.
markdown/extensions/toc.py:160
↓ 1 callers
Method
reorder_footnotes
(self, parent: etree.Element)
markdown/extensions/footnotes.py:467
↓ 1 callers
Method
replace_marker
Replace marker with elem.
markdown/extensions/toc.py:300
↓ 1 callers
Method
reset
Clear footnotes on reset, and prepare for distinct document.
markdown/extensions/footnotes.py:128
↓ 1 callers
Method
rule_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 callers
Function
run
Run Markdown from the command line.
markdown/__main__.py:130
↓ 1 callers
Method
run
Add line breaks to `Element` object and its children.
markdown/treeprocessors.py:439
↓ 1 callers
Method
sanitize_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 callers
Method
setConfigs
Loop through a collection of configuration options, passing each to [`setConfig`][markdown.extensions.Extension.setConfig].
markdown/extensions/__init__.py:115
↓ 1 callers
Method
setFootnote
Store a footnote for later retrieval.
markdown/extensions/footnotes.py:177
↓ 1 callers
Method
set_level
Adjust header level according to base level.
markdown/extensions/toc.py:321
↓ 1 callers
Method
set_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 callers
Function
slugify
Slugify a string, to make it URL friendly.
markdown/extensions/toc.py:39
↓ 1 callers
Method
test
(self)
markdown/test_tools.py:150
↓ 1 callers
Method
type
Return class name, to define pattern type
markdown/inlinepatterns.py:231
↓ 1 callers
Method
unique_ref
Get a unique reference if there are duplicates.
markdown/extensions/footnotes.py:136
Method
__contains__
(self, item: str | _T)
markdown/util.py:315
← previous
next →
101–200 of 1,385, ranked by callers