MCPcopy Create free account

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

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

↓ 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:194
↓ 1 callersMethod_prettifyETree
Recursively add line breaks to `ElementTree` children.
markdown/treeprocessors.py:418
↓ 1 callersFunction_serialize_html
(write: Callable[[str], None], elem: Element, format: Literal["html", "xhtml"])
markdown/serializers.py:118
↓ 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:898
↓ 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:306
↓ 1 callersMethodadd_duplicates
Adjust current `li` and add the duplicates: `fnref2`, `fnref3`, etc.
markdown/extensions/footnotes.py:372
↓ 1 callersMethodadd_permalink
(self, c: etree.Element, elem_id: str)
markdown/extensions/toc.py:318
↓ 1 callersMethodassertParses
(self, value, result)
tests/test_apis.py:736
↓ 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:163
↓ 1 callersMethodbackslash_unescape
Return text with backslash escapes undone (backslashes are restored).
markdown/inlinepatterns.py:530
↓ 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_double
Return double tag.
markdown/inlinepatterns.py:562
↓ 1 callersMethodbuild_double2
Return double tags (variant 2): `<strong>text <em>text</em></strong>`.
markdown/inlinepatterns.py:576
↓ 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:195
↓ 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:53
↓ 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:131
↓ 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_single
Return single tag.
markdown/inlinepatterns.py:555
↓ 1 callersMethodbuild_toc_div
Return a string div given a toc list.
markdown/extensions/toc.py:334
↓ 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 callersMethodcode_unescape
Unescape code.
markdown/extensions/codehilite.py:258
↓ 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:394
↓ 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:114
↓ 1 callersFunctiondequote
Remove quotes from around a string.
markdown/inlinepatterns.py:177
↓ 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:295
↓ 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:119
↓ 1 callersMethodevalId
Evaluate the id portion of `[ref][id]`. If `[ref][]` use `[ref]`.
markdown/inlinepatterns.py:904
↓ 1 callersMethodextendMarkdown
Register the processor. | Class Instance | Registry
markdown/extensions/toc.py:475
↓ 1 callersMethodfindFootnotesPlaceholder
Return ElementTree Element that contains Footnote placeholder.
markdown/extensions/footnotes.py:157
↓ 1 callersMethodgetCompiledRegExp
Return a compiled regular expression.
markdown/inlinepatterns.py:243
↓ 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_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:75
↓ 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_num_duplicates
Get the number of duplicate refs of the footnote.
markdown/extensions/footnotes.py:392
↓ 1 callersMethodget_state
Return state from tag and `markdown` attribute. One of 'block', 'span', or 'off'.
markdown/extensions/md_in_html.py:81
↓ 1 callersMethodhandleAttributes
Set attributes and return text without definitions.
markdown/extensions/legacy_attrs.py:57
↓ 1 callersMethodhandleMatch
Return a ElementTree element from the given match. Subclasses should override this method. Arguments: m: A match object
markdown/inlinepatterns.py:247
↓ 1 callersMethodhandle_attrs
Return tuple: `(id, [list, of, classes], {configs})`
markdown/extensions/fenced_code.py:173
↓ 1 callersMethodhandle_comment
(self, data: str)
markdown/htmlparser.py:297
↓ 1 callersMethodhandle_duplicates
Find duplicate footnotes and format and add the duplicates.
markdown/extensions/footnotes.py:398
↓ 1 callersMethodhandle_starttag
(self, tag: str, attrs: Sequence[tuple[str, str]])
markdown/htmlparser.py:209
↓ 1 callersMethodisblocklevel
Check is block of HTML is block-level.
markdown/postprocessors.py:95
↓ 1 callersFunctionisheader
(elem: Element)
markdown/extensions/attr_list.py:87
↓ 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:267
↓ 1 callersMethodlinked_obj
Wrap object name in reference link.
scripts/griffe_extensions.py:51
↓ 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:920
↓ 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:477
↓ 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:174
↓ 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:318
↓ 1 callersFunctionremove_fnrefs
Remove footnote references from a copy of the element, if any are present.
markdown/extensions/toc.py:151
↓ 1 callersFunctionrender_inner_html
Fully render inner html of an `etree` element as a string.
markdown/extensions/toc.py:138
↓ 1 callersMethodreorder_footnotes
(self, parent: etree.Element)
markdown/extensions/footnotes.py:457
↓ 1 callersMethodreplace_marker
Replace marker with elem.
markdown/extensions/toc.py:278
↓ 1 callersMethodreset
Clear footnotes on reset, and prepare for distinct document.
markdown/extensions/footnotes.py:128
↓ 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:432
↓ 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:188
↓ 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:299
↓ 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:279
↓ 1 callersFunctionslugify
Slugify a string, to make it URL friendly.
markdown/extensions/toc.py:38
↓ 1 callersMethodtest
(self)
markdown/test_tools.py:150
↓ 1 callersMethodtype
Return class name, to define pattern type
markdown/inlinepatterns.py:260
↓ 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: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
← previousnext →101–200 of 1,263, ranked by callers