utilities to fix LaTeX issues
This commit is contained in:
1 parent
2a4c5f4f7c
commit
a56fc6e680
7 files changed
+164
-2
No files matched your search
@@ -1785,6 +1785,18 @@ class StandardCliTests(unittest.TestCase):
|
||||
r"valid $\begin{cases} A=0 \\ B=1 \end{cases}$",
|
||||
)
|
||||
self.assertEqual(module.clean_string(cleaned_text, {}), cleaned_text)
|
||||
percent_text = r"Code `n % p`, prose 50%, math $n \% p$ and $50%$."
|
||||
escaped_percent_text = (
|
||||
r"Code `n \% p`, prose 50\%, math $n \% p$ and $50\%$."
|
||||
)
|
||||
self.assertEqual(
|
||||
module.clean_string(percent_text, {}),
|
||||
escaped_percent_text,
|
||||
)
|
||||
self.assertEqual(
|
||||
module.clean_string(escaped_percent_text, {}),
|
||||
escaped_percent_text,
|
||||
)
|
||||
corrupted_json_escapes = (
|
||||
"Formulas $"
|
||||
+ "\x0c"
|
||||
|
||||
Reference in new issue
Block a user