[mgol] better latex detection regex. fixes #3598
This commit is contained in:
parent
46aac301c8
commit
002556db7e
|
@ -2319,7 +2319,7 @@ class Interface:
|
|||
r'(?<!\w|\<)' r'/[^\s/]' r'([^/]*[^\s/])?' r'/(?!\w)|'\
|
||||
r'(?<!\w)' r'_[^\s_]' r'([^_]*[^\s_])?' r'_(?!\w)'
|
||||
|
||||
latex = r'|\$\$.*\$\$'
|
||||
latex = r'|\$\$[^$\\]*?([\]\[0-9A-Za-z()|+*/-]|[\\][\]\[0-9A-Za-z()|{}$])(.*?[^\\])?\$\$'
|
||||
|
||||
basic_pattern = links + mail
|
||||
|
||||
|
|
Loading…
Reference in New Issue