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

Function postProcess

markdown_it/rules_inline/strikethrough.py:158–173  ·  view source on GitHub ↗

Walk through delimiter list and replace text tokens with tags.

(state: StateInline)

Source from the content-addressed store, hash-verified

156
157
158def postProcess(state: StateInline) -> None:
159 """Walk through delimiter list and replace text tokens with tags."""
160 tokens_meta = state.tokens_meta
161 maximum = len(state.tokens_meta)
162 _postProcess(state, state.delimiters)
163
164 curr = 0
165 while curr < maximum:
166 try:
167 curr_meta = tokens_meta[curr]
168 except IndexError:
169 pass
170 else:
171 if curr_meta and "delimiters" in curr_meta:
172 _postProcess(state, curr_meta["delimiters"])
173 curr += 1

Callers

nothing calls this directly

Calls 1

_postProcessFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…