]> git.scottworley.com Git - paperdoorknob/blobdiff - texfilter.py
Optionally have Thread.__init__ fetch the HTML
[paperdoorknob] / texfilter.py
index 8103c19df2cef6475e1a9e9fb29ac637196a07ac..de3674b82f04a414cec9e7323ca41b8d8f0d1938 100644 (file)
@@ -11,8 +11,8 @@ from typing import Callable, List, Tuple
 
 TexFilters: List[Tuple[str, Callable[[bytes], bytes]]] = [
     # Work around `Extra }, or forgotten \endgroup.`
-    ("FixBareEmph", lambda x: re.sub(
-        b'(^|\n)(\\\\emph{)', b'\\1\\\\hspace{0pt}\\2', x)),
+    ("FixBareNesting", lambda x: re.sub(
+        b'(^|\n)(\\\\(emph|st){)', b'\\1\\\\hspace{0pt}\\2', x)),
 ]