X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/f74e57796d3473d9126f8b3a98ee0d63bb0b742e..HEAD:/texfilter.py?ds=inline diff --git a/texfilter.py b/texfilter.py index de3674b..e215b18 100644 --- a/texfilter.py +++ b/texfilter.py @@ -13,6 +13,8 @@ TexFilters: List[Tuple[str, Callable[[bytes], bytes]]] = [ # Work around `Extra }, or forgotten \endgroup.` ("FixBareNesting", lambda x: re.sub( b'(^|\n)(\\\\(emph|st){)', b'\\1\\\\hspace{0pt}\\2', x)), + ("UnicodeApprox", lambda x: re.sub('≈'.encode('utf-8'), b'$\\approx$', x)), + ("UnicodeTriangle", lambda x: re.sub('◁'.encode('utf-8'), b'$\\lhd$', x)), ]