massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Markdown / markdown / inlinepatterns.pyi
1 import typing
2 from typing import Any, Match
3 from xml.etree.ElementTree import Element
4
5 def build_inlinepatterns(md, **kwargs): ...
6
7 NOIMG: str
8 BACKTICK_RE: str
9 ESCAPE_RE: str
10 EMPHASIS_RE: str
11 STRONG_RE: str
12 SMART_STRONG_RE: str
13 SMART_EMPHASIS_RE: str
14 SMART_STRONG_EM_RE: str
15 EM_STRONG_RE: str
16 EM_STRONG2_RE: str
17 STRONG_EM_RE: str
18 STRONG_EM2_RE: str
19 STRONG_EM3_RE: str
20 LINK_RE: str
21 IMAGE_LINK_RE: str
22 REFERENCE_RE: str
23 IMAGE_REFERENCE_RE: str
24 NOT_STRONG_RE: str
25 AUTOLINK_RE: str
26 AUTOMAIL_RE: str
27 HTML_RE: str
28 ENTITY_RE: str
29 LINE_BREAK_RE: str
30
31 def dequote(string): ...
32
33 class EmStrongItem: ...
34
35 class Pattern:
36     ANCESTOR_EXCLUDES: Any
37     pattern: Any
38     compiled_re: Any
39     md: Any
40     def __init__(self, pattern, md: Any | None = ...) -> None: ...
41     @property
42     def markdown(self): ...
43     def getCompiledRegExp(self): ...
44     def handleMatch(self, m: Match[str]) -> str | Element | None: ...
45     def type(self): ...
46     def unescape(self, text): ...
47
48 class InlineProcessor(Pattern):
49     safe_mode: bool = ...
50     def __init__(self, pattern, md: Any | None = ...) -> None: ...
51     def handleMatch(self, m: Match[str], data) -> tuple[Element, int, int] | tuple[None, None, None]: ...  # type: ignore
52
53 class SimpleTextPattern(Pattern): ...
54 class SimpleTextInlineProcessor(InlineProcessor): ...
55 class EscapeInlineProcessor(InlineProcessor): ...
56
57 class SimpleTagPattern(Pattern):
58     tag: Any
59     def __init__(self, pattern, tag) -> None: ...
60
61 class SimpleTagInlineProcessor(InlineProcessor):
62     tag: Any
63     def __init__(self, pattern, tag) -> None: ...
64
65 class SubstituteTagPattern(SimpleTagPattern): ...
66 class SubstituteTagInlineProcessor(SimpleTagInlineProcessor): ...
67
68 class BacktickInlineProcessor(InlineProcessor):
69     ESCAPED_BSLASH: Any
70     tag: str = ...
71     def __init__(self, pattern) -> None: ...
72
73 class DoubleTagPattern(SimpleTagPattern): ...
74 class DoubleTagInlineProcessor(SimpleTagInlineProcessor): ...
75 class HtmlInlineProcessor(InlineProcessor): ...
76
77 class AsteriskProcessor(InlineProcessor):
78     PATTERNS: Any
79     def build_single(self, m, tag, idx): ...
80     def build_double(self, m, tags, idx): ...
81     def build_double2(self, m, tags, idx): ...
82     def parse_sub_patterns(self, data, parent, last, idx) -> None: ...
83     def build_element(self, m, builder, tags, index): ...
84
85 class UnderscoreProcessor(AsteriskProcessor):
86     PATTERNS: Any
87
88 class LinkInlineProcessor(InlineProcessor):
89     RE_LINK: Any
90     RE_TITLE_CLEAN: Any
91     def getLink(self, data, index): ...
92     def getText(self, data, index): ...
93
94 class ImageInlineProcessor(LinkInlineProcessor): ...
95
96 class ReferenceInlineProcessor(LinkInlineProcessor):
97     NEWLINE_CLEANUP_RE: typing.Pattern
98     def evalId(self, data, index, text): ...
99     def makeTag(self, href, title, text): ...
100
101 class ShortReferenceInlineProcessor(ReferenceInlineProcessor): ...
102 class ImageReferenceInlineProcessor(ReferenceInlineProcessor): ...
103 class AutolinkInlineProcessor(InlineProcessor): ...
104 class AutomailInlineProcessor(InlineProcessor): ...