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

Function store_math

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

Source from the content-addressed store, hash-verified

246 # --- 1) 捕获所有数学块(沿用全局 MATH_BLOCK_RE)----
247 math_blocks = []
248 def store_math(m):
249 math_blocks.append(m.group(0))
250 return f"\0{len(math_blocks)-1}\0"
251
252 s = MATH_BLOCK_RE.sub(store_math, s)
253

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected