lytanjie
ab51601b89
fix(web): keep statistics notation as inline math ( #2878 )
...
* fix(web): keep statistics notation as inline math
plausibleMathBody judged inline math by Latin words, so $Var(N)$, $Cov(X,Y)
and $Corr(X,Y)$ fell through escapeStrayDollars and displayed as source.
Add the common statistics functions to MATH_WORDS.
Also recover control characters left by JSON tool-argument decoding
(U+0008/U+000C/U+000D followed by a letter) back into \b, \f and \r, so
formulas already stored in notes render again.
Tests: latex-normalize.test.ts.
Co-Authored-By: Claude Code <noreply@anthropic.com >
* fix(web): only restore a decoded escape that spells a KaTeX command
A form feed or carriage return in front of a word is not always a mangled
\frac or \right: text extracted from a PDF keeps a form feed between pages.
Rewriting every one of them showed a stray "\f" in front of the next word.
Restore the backslash only when the letters after it name a KaTeX command.
---------
Co-authored-by: Claude Code <noreply@anthropic.com >
Co-authored-by: zszz3 <91608029+zszz3@users.noreply.github.com >
2026-11-29 15:29:03 +08:00
..
2026-11-29 14:52:34 +08:00
2026-11-29 14:52:01 +08:00
2026-10-30 13:55:29 +08:00
2026-11-29 14:52:18 +08:00
2026-11-08 18:24:54 +05:30
2026-11-15 00:50:31 +08:00
2026-11-14 23:36:26 +08:00
2026-10-17 23:15:23 +08:00
2026-11-01 05:41:46 +03:00
2026-10-18 23:09:10 +08:00
2026-10-26 22:13:34 +08:00
2026-10-30 07:41:44 +07:00
2026-10-30 07:41:44 +07:00
2026-10-30 21:52:29 +01:00
2026-10-26 22:13:34 +08:00
2026-11-15 01:42:47 +08:00
2026-11-10 13:44:05 +00:00
2026-11-06 17:27:00 +08:00
2026-11-06 16:55:19 +08:00
2026-10-26 16:24:32 +08:00
2026-10-27 22:03:37 +00:00
2026-10-28 16:51:02 +09:00
2026-10-30 19:07:04 +01:00
2026-10-29 18:11:52 +08:00
2026-11-15 01:00:49 +08:00
2026-10-30 23:15:37 +08:00
2026-11-14 23:19:09 +08:00
2026-10-26 22:13:34 +08:00
2026-11-04 11:08:44 +08:00
2026-10-26 22:13:34 +08:00
2026-11-01 22:55:21 +08:00
2026-11-09 14:53:24 +08:00
2026-10-19 01:03:40 +08:00
2026-10-27 12:32:45 +08:00
2026-10-18 23:09:10 +08:00
2026-10-18 23:09:10 +08:00
2026-10-28 15:28:08 +07:00
2026-11-01 10:39:22 +01:00
2026-10-31 17:22:06 +08:00
2026-10-29 18:11:52 +08:00
2026-10-30 19:07:04 +01:00
2026-10-29 18:11:52 +08:00
2026-10-28 22:58:58 +08:00
2026-10-29 18:11:52 +08:00
2026-10-26 22:13:34 +08:00
2026-11-01 12:10:58 +08:00
2026-11-09 13:40:39 +08:00
2026-10-18 23:09:10 +08:00
2026-10-29 18:11:52 +08:00
2026-11-09 14:09:57 +00:00
2026-11-06 19:13:03 -05:00
2026-11-13 20:10:11 +01:00
2026-10-26 22:13:34 +08:00
2026-10-18 23:09:10 +08:00
2026-11-28 13:09:15 -03:00
2026-10-29 02:51:32 +08:00
2026-11-10 00:31:22 +08:00
2026-11-09 23:07:32 +08:00
2026-11-07 14:20:07 +01:00
2026-10-31 18:14:34 +08:00
2026-10-30 11:00:13 +09:00
2026-11-15 00:50:31 +08:00
2026-11-01 05:41:55 +03:00
2026-11-02 02:51:36 +00:00
2026-11-14 23:34:48 +08:00
2026-10-19 03:29:21 +08:00
2026-10-26 22:13:34 +08:00
2026-11-06 02:07:17 +08:00
2026-11-14 23:36:26 +08:00
2026-11-29 15:29:03 +08:00
2026-11-29 14:52:50 +08:00
2026-10-30 14:23:28 +08:00
2026-11-29 14:52:50 +08:00
2026-11-29 14:53:07 +08:00
2026-10-18 23:09:10 +08:00
2026-10-30 07:41:44 +07:00
2026-10-30 07:41:44 +07:00
2026-10-15 23:00:23 +08:00
2026-11-10 00:33:52 +08:00
2026-10-26 22:13:34 +08:00
2026-11-15 01:20:53 +08:00
2026-11-01 05:41:48 +03:00
2026-10-18 23:09:10 +08:00
2026-10-29 01:37:11 +08:00
2026-10-26 22:13:34 +08:00
2026-10-26 22:13:34 +08:00
2026-10-31 16:47:06 +08:00
2026-10-29 13:41:44 +09:00
2026-11-29 14:53:07 +08:00
2026-10-26 22:13:34 +08:00
2026-11-06 02:27:50 +08:00
2026-10-19 01:11:31 +08:00
2026-10-22 18:37:54 -07:00
2026-10-22 18:37:54 -07:00
2026-10-26 22:13:34 +08:00
2026-10-30 21:52:29 +01:00
2026-10-27 17:58:46 +08:00
2026-11-15 00:50:30 +08:00
2026-11-10 15:48:43 +08:00
2026-11-10 15:48:43 +08:00
2026-10-27 23:39:17 +08:00
2026-10-30 13:55:30 +08:00
2026-10-29 18:16:23 +09:00
2026-10-28 01:02:29 +08:00
2026-11-10 00:33:52 +08:00
2026-10-17 23:15:23 +08:00
2026-10-26 22:13:34 +08:00
2026-10-27 22:07:06 +00:00
2026-10-27 22:07:06 +00:00
2026-10-17 23:15:23 +08:00
2026-10-17 23:15:23 +08:00
2026-10-17 23:15:23 +08:00
2026-10-26 22:13:34 +08:00
2026-11-29 15:11:07 +08:00
2026-10-17 23:15:23 +08:00
2026-10-26 22:13:34 +08:00
2026-10-28 12:28:20 +08:00
2026-10-28 19:02:44 +08:00
2026-11-06 02:07:17 +08:00
2026-10-31 18:38:58 +08:00
2026-10-31 17:55:53 +08:00
2026-10-29 19:46:38 +03:00
2026-11-08 18:24:54 +05:30
2026-11-11 19:51:06 +08:00
2026-11-14 23:31:59 +08:00
2026-11-11 19:51:06 +08:00
2026-11-11 19:51:06 +08:00
2026-11-11 19:51:06 +08:00
2026-11-12 21:41:40 +08:00
2026-11-14 23:31:59 +08:00
2026-11-11 19:50:33 +08:00
2026-11-12 21:41:40 +08:00
2026-11-11 19:50:33 +08:00
2026-11-11 19:50:33 +08:00
2026-11-11 19:50:33 +08:00
2026-11-11 19:50:33 +08:00
2026-11-06 02:27:50 +08:00
2026-10-26 22:13:34 +08:00
2026-10-26 22:13:34 +08:00
2026-10-26 22:13:34 +08:00
2026-11-09 16:23:50 +08:00
2026-11-06 01:56:26 +08:00
2026-10-28 21:21:34 +08:00
2026-10-26 22:13:34 +08:00
2026-10-19 01:03:40 +08:00
2026-11-28 21:03:56 +08:00
2026-11-15 01:20:52 +08:00
2026-11-29 14:52:01 +08:00
2026-11-15 01:20:52 +08:00
2026-11-15 01:43:44 +08:00
2026-11-15 01:20:52 +08:00
2026-11-15 01:20:52 +08:00
2026-11-15 01:20:52 +08:00
2026-10-26 22:13:34 +08:00
2026-11-11 18:31:38 +08:00
2026-11-09 22:17:03 +08:00
2026-10-18 23:09:10 +08:00
2026-11-15 00:50:30 +08:00
2026-11-15 01:20:52 +08:00
2026-11-14 23:03:04 +08:00
2026-11-09 22:17:03 +08:00
2026-10-31 15:24:02 +09:00
2026-10-31 14:12:08 +09:00
2026-11-15 01:20:52 +08:00
2026-10-31 16:51:04 +08:00
2026-11-11 19:50:33 +08:00
2026-11-09 22:36:10 +08:00
2026-11-09 22:36:10 +08:00
2026-11-26 19:52:59 +08:00
2026-10-31 16:47:06 +08:00
2026-10-26 00:50:41 +08:00
2026-10-26 22:13:34 +08:00
2026-10-31 16:47:06 +08:00
2026-10-15 23:00:23 +08:00
2026-11-01 22:52:30 +08:00
2026-10-30 13:55:30 +08:00
2026-10-27 12:32:45 +08:00
2026-10-30 23:15:37 +08:00
2026-10-27 01:39:54 +08:00
2026-10-19 01:07:32 +08:00
2026-10-18 23:09:10 +08:00
2026-10-30 13:55:29 +08:00
2026-11-28 13:09:15 -03:00
2026-10-29 00:36:18 +08:00
2026-10-30 07:41:44 +07:00
2026-11-09 17:46:38 +08:00
2026-11-28 08:07:22 -03:00
2026-10-31 17:55:53 +08:00
2026-10-15 23:00:23 +08:00
2026-10-30 14:23:28 +08:00
2026-10-18 23:09:10 +08:00
2026-10-26 22:13:34 +08:00
2026-10-18 23:09:10 +08:00
2026-10-26 22:13:34 +08:00
2026-10-15 23:00:23 +08:00
2026-10-29 18:11:52 +08:00
2026-10-18 23:09:10 +08:00
2026-10-27 17:58:46 +08:00
2026-11-01 05:41:46 +03:00
2026-10-18 23:09:10 +08:00
2026-10-28 18:33:14 +08:00
2026-10-18 23:09:10 +08:00
2026-10-18 23:09:10 +08:00
2026-10-26 22:13:34 +08:00
2026-11-28 08:07:22 -03:00
2026-11-15 01:00:49 +08:00
2026-10-27 17:58:46 +08:00
2026-10-31 18:14:34 +08:00
2026-11-06 02:27:50 +08:00
2026-10-15 23:00:23 +08:00
2026-10-19 03:29:21 +08:00
2026-10-19 03:29:21 +08:00
2026-10-30 07:20:55 +08:00
2026-10-27 17:58:46 +08:00
2026-11-15 01:20:52 +08:00
2026-10-22 13:15:27 -07:00
2026-10-15 23:00:23 +08:00
2026-11-09 16:23:50 +08:00
2026-10-19 00:29:40 +08:00
2026-10-18 23:09:10 +08:00
2026-10-18 23:09:10 +08:00
2026-10-26 22:13:34 +08:00