pub fn ce(input: &str) -> StringExpand description
把 \ce{...} 内容转译为 LaTeX。
容错设计(不依赖 catch_unwind,因 release 的 panic = "abort" 下它无效):
- 正则编译走
compile_or_log,失败降级为不匹配(状态机退到 “else” 兜底)。 - 状态机有 watchdog 防死循环。
to_tex仍包catch_unwind,仅作 dev/test 护栏。
坏公式可能产出退化输出,但不应 panic。all_match_patterns_compile 测试
在测试期捕获正则转录回归。