MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / Delimiter

Class Delimiter

markdown_it/rules_inline/state_inline.py:16–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15@dataclass(slots=True)
16class Delimiter:
17 # Char code of the starting marker (number).
18 marker: int
19
20 # Total length of these series of delimiters.
21 length: int
22
23 # A position of the token this delimiter corresponds to.
24 token: int
25
26 # If this delimiter is matched as a valid opener, `end` will be
27 # equal to its position, otherwise it's `-1`.
28 end: int
29
30 # Boolean flags that determine if this delimiter could open or close
31 # an emphasis.
32 open: bool
33 close: bool
34
35 level: bool | None = None
36
37
38class Scanned(NamedTuple):

Callers 2

tokenizeFunction · 0.85
tokenizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…