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

Class _State

markdown_it/helpers/parse_link_title.py:6–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class _State:
7 __slots__ = ("can_continue", "marker", "ok", "pos", "str")
8
9 def __init__(self) -> None:
10 self.ok = False
11 """if `true`, this is a valid link title"""
12 self.can_continue = False
13 """if `true`, this link can be continued on the next line"""
14 self.pos = 0
15 """if `ok`, it's the position of the first character after the closing marker"""
16 self.str = ""
17 """if `ok`, it's the unescaped title"""
18 self.marker = 0
19 """expected closing marker character code"""
20
21 def __str__(self) -> str:
22 return self.str
23
24
25def parseLinkTitle(

Callers 1

parseLinkTitleFunction · 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…