forked from python/typeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various improvements to
Markdown
stubs (python#10963)
- Loading branch information
Showing
29 changed files
with
189 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
markdown.extensions.abbr.ABBR_REF_RE | ||
markdown.extensions.attr_list.AttrListTreeprocessor.run | ||
markdown.extensions.codehilite.CodeHilite.__init__ | ||
markdown.extensions.fenced_code.FencedBlockPreprocessor.__init__ | ||
markdown.extensions.footnotes.DEF_RE | ||
markdown.extensions.footnotes.FootnotePreprocessor | ||
markdown.extensions.footnotes.TABBED_RE | ||
markdown.extensions.legacy_attrs.LegacyAttrs.run | ||
markdown.extensions.toc.TocTreeprocessor.run | ||
markdown.extensions.toc.slugify | ||
markdown.postprocessors.UnescapePostprocessor # deprecated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
from re import Pattern | ||
from xml.etree.ElementTree import Element | ||
|
||
from markdown.extensions import Extension | ||
from markdown.treeprocessors import Treeprocessor | ||
|
||
def get_attrs(str): ... | ||
def isheader(elem): ... | ||
def get_attrs(str: str) -> list[tuple[str, str]]: ... | ||
def isheader(elem: Element) -> bool: ... | ||
|
||
class AttrListTreeprocessor(Treeprocessor): | ||
BASE_RE: str | ||
HEADER_RE: Pattern[str] | ||
BLOCK_RE: Pattern[str] | ||
INLINE_RE: Pattern[str] | ||
NAME_RE: Pattern[str] | ||
def assign_attrs(self, elem, attrs) -> None: ... | ||
def sanitize_name(self, name): ... | ||
def assign_attrs(self, elem: Element, attrs: str) -> None: ... | ||
def sanitize_name(self, name: str) -> str: ... | ||
|
||
class AttrListExtension(Extension): ... | ||
|
||
def makeExtension(**kwargs): ... | ||
def makeExtension(**kwargs) -> AttrListExtension: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
from _typeshed import Incomplete | ||
from re import Pattern | ||
from typing import ClassVar | ||
from typing import Any, ClassVar | ||
|
||
from markdown.core import Markdown | ||
from markdown.extensions import Extension | ||
from markdown.preprocessors import Preprocessor | ||
|
||
class FencedCodeExtension(Extension): ... | ||
|
||
class FencedBlockPreprocessor(Preprocessor): | ||
FENCED_BLOCK_RE: ClassVar[Pattern[str]] | ||
codehilite_conf: dict[Incomplete, Incomplete] | ||
def __init__(self, md) -> None: ... | ||
codehilite_conf: dict[str, Any] | ||
def __init__(self, md: Markdown, config: dict[str, Any]) -> None: ... | ||
|
||
def makeExtension(**kwargs): ... | ||
def makeExtension(**kwargs) -> FencedCodeExtension: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
from markdown import blockparser | ||
from markdown.blockprocessors import OListProcessor, UListProcessor | ||
from markdown.extensions import Extension | ||
|
||
class SaneOListProcessor(OListProcessor): | ||
def __init__(self, parser) -> None: ... | ||
def __init__(self, parser: blockparser.BlockParser) -> None: ... | ||
|
||
class SaneUListProcessor(UListProcessor): | ||
def __init__(self, parser) -> None: ... | ||
def __init__(self, parser: blockparser.BlockParser) -> None: ... | ||
|
||
class SaneListExtension(Extension): ... | ||
|
||
def makeExtension(**kwargs): ... | ||
def makeExtension(**kwargs) -> SaneListExtension: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.