Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Python-Markdown/markdown
/ functions
Functions
1,263 in github.com/Python-Markdown/markdown
⨍
Functions
1,263
◇
Types & classes
191
↳
Endpoints
1
↓ 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:194
↓ 1 callers
Method
_prettifyETree
Recursively add line breaks to `ElementTree` children.
markdown/treeprocessors.py:418
↓ 1 callers
Function
_serialize_html
(write: Callable[[str], None], elem: Element, format: Literal["html", "xhtml"])
markdown/serializers.py:118
↓ 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:898
↓ 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:306
↓ 1 callers
Method
add_duplicates
Adjust current `li` and add the duplicates: `fnref2`, `fnref3`, etc.
markdown/extensions/footnotes.py:372
↓ 1 callers
Method
add_permalink
(self, c: etree.Element, elem_id: str)
markdown/extensions/toc.py:318
↓ 1 callers
Method
assertParses
(self, value, result)
tests/test_apis.py:736
↓ 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:163
↓ 1 callers
Method
backslash_unescape
Return text with backslash escapes undone (backslashes are restored).
markdown/inlinepatterns.py:530
↓ 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_double
Return double tag.
markdown/inlinepatterns.py:562
↓ 1 callers
Method
build_double2
Return double tags (variant 2): `<strong>text <em>text</em></strong>`.
markdown/inlinepatterns.py:576
↓ 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:195
↓ 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:53
↓ 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:131
↓ 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_single
Return single tag.
markdown/inlinepatterns.py:555
↓ 1 callers
Method
build_toc_div
Return a string div given a toc list.
markdown/extensions/toc.py:334
↓ 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
Method
code_unescape
Unescape code.
markdown/extensions/codehilite.py:258
↓ 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:394
↓ 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:114
↓ 1 callers
Function
dequote
Remove quotes from around a string.
markdown/inlinepatterns.py:177
↓ 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:295
↓ 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:119
↓ 1 callers
Method
evalId
Evaluate the id portion of `[ref][id]`. If `[ref][]` use `[ref]`.
markdown/inlinepatterns.py:904
↓ 1 callers
Method
extendMarkdown
Register the processor. | Class Instance | Registry
markdown/extensions/toc.py:475
↓ 1 callers
Method
findFootnotesPlaceholder
Return ElementTree Element that contains Footnote placeholder.
markdown/extensions/footnotes.py:157
↓ 1 callers
Method
getCompiledRegExp
Return a compiled regular expression.
markdown/inlinepatterns.py:243
↓ 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_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:75
↓ 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_num_duplicates
Get the number of duplicate refs of the footnote.
markdown/extensions/footnotes.py:392
↓ 1 callers
Method
get_state
Return state from tag and `markdown` attribute. One of 'block', 'span', or 'off'.
markdown/extensions/md_in_html.py:81
↓ 1 callers
Method
handleAttributes
Set attributes and return text without definitions.
markdown/extensions/legacy_attrs.py:57
↓ 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:247
↓ 1 callers
Method
handle_attrs
Return tuple: `(id, [list, of, classes], {configs})`
markdown/extensions/fenced_code.py:173
↓ 1 callers
Method
handle_comment
(self, data: str)
markdown/htmlparser.py:297
↓ 1 callers
Method
handle_duplicates
Find duplicate footnotes and format and add the duplicates.
markdown/extensions/footnotes.py:398
↓ 1 callers
Method
handle_starttag
(self, tag: str, attrs: Sequence[tuple[str, str]])
markdown/htmlparser.py:209
↓ 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:87
↓ 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:267
↓ 1 callers
Method
linked_obj
Wrap object name in reference link.
scripts/griffe_extensions.py:51
↓ 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:920
↓ 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:477
↓ 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:174
↓ 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:318
↓ 1 callers
Function
remove_fnrefs
Remove footnote references from a copy of the element, if any are present.
markdown/extensions/toc.py:151
↓ 1 callers
Function
render_inner_html
Fully render inner html of an `etree` element as a string.
markdown/extensions/toc.py:138
↓ 1 callers
Method
reorder_footnotes
(self, parent: etree.Element)
markdown/extensions/footnotes.py:457
↓ 1 callers
Method
replace_marker
Replace marker with elem.
markdown/extensions/toc.py:278
↓ 1 callers
Method
reset
Clear footnotes on reset, and prepare for distinct document.
markdown/extensions/footnotes.py:128
↓ 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:432
↓ 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:188
↓ 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:299
↓ 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:279
↓ 1 callers
Function
slugify
Slugify a string, to make it URL friendly.
markdown/extensions/toc.py:38
↓ 1 callers
Method
test
(self)
markdown/test_tools.py:150
↓ 1 callers
Method
type
Return class name, to define pattern type
markdown/inlinepatterns.py:260
↓ 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:318
Method
__enter__
(self)
markdown/test_tools.py:112
Method
__eq__
(self, other)
tests/test_apis.py:223
Method
__exit__
(self, type, value, tb)
markdown/test_tools.py:115
Method
__getitem__
(self, key: str | int)
markdown/util.py:330
Method
__init__
(self, limit)
markdown/test_tools.py:108
Method
__init__
Creates a new Markdown instance. Keyword Arguments: extensions (list[Extension | str]): A list of extensions.
markdown/core.py:88
Method
__init__
(self, md: Markdown, *args, **kwargs)
markdown/htmlparser.py:129
Method
__init__
(self, *args)
markdown/blockprocessors.py:170
Method
__init__
(self, parser: BlockParser)
markdown/blockprocessors.py:345
Method
__init__
(self, parser: BlockParser)
markdown/blockprocessors.py:451
Method
__init__
(self, md: Markdown | None = None)
markdown/util.py:204
Method
__init__
Create an `HtmlStash`.
markdown/util.py:222
Method
__init__
(self)
markdown/util.py:313
Method
__init__
Initialize the block parser. Arguments: md: A Markdown instance. Attributes: BlockParser.md (Markdown): A M
markdown/blockparser.py:83
Method
__init__
Create an instant of an inline processor. Arguments: pattern: A regular expression that matches a pattern. m
markdown/inlinepatterns.py:292
Method
__init__
Create an instant of an simple tag pattern. Arguments: pattern: A regular expression that matches a pattern.
markdown/inlinepatterns.py:370
Method
__init__
Create an instant of an simple tag processor. Arguments: pattern: A regular expression that matches a pattern.
markdown/inlinepatterns.py:399
← previous
next →
101–200 of 1,263, ranked by callers