Skip to content
Snippets Groups Projects
Commit 002556db authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[mgol] better latex detection regex. fixes #3598

parent 46aac301
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment