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

Function text

markdown_it/rules_inline/text.py:8–23  ·  view source on GitHub ↗
(state: StateInline, silent: bool)

Source from the content-addressed store, hash-verified

6
7
8def text(state: StateInline, silent: bool) -> bool:
9 pos = state.pos
10 posMax = state.posMax
11
12 terminator_char = state.md.inline.terminator_re.search(state.src, pos)
13 pos = terminator_char.start() if terminator_char else posMax
14
15 if pos == state.pos:
16 return False
17
18 if not silent:
19 state.pending += state.src[state.pos : pos]
20
21 state.pos = pos
22
23 return True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…