MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / _hide

Function _hide

demo/posterbuilder/convert.py:106–108  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

104 # 1) 暂存已有数学块
105 stash = []
106 def _hide(m):
107 stash.append(m.group(0))
108 return f"\x00M{len(stash)-1}\x00"
109 s_hidden = MATH_BLOCK_RE.sub(_hide, s)
110
111 # 2) 把裸奔宏包进 $...$

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected