Skip to content

Commit 11cb736

Browse files
authored
Fix linkify with latex
1 parent 9adc3dd commit 11cb736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ansi2html/converter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def append_color_unless_default(output, color, default, negative, neg_css_class)
178178
def linkify(line, latex_mode):
179179
url_matcher = re.compile('(https?://(?:[-\w.]|(?:%[\da-fA-F]{2}))+)')
180180
if latex_mode:
181-
return url_matcher.sub(r'\\url{\1}', line)
181+
return url_matcher.sub(r'\\\\url{\1}', line)
182182
else:
183183
return url_matcher.sub(r'<a href="\1">\1</a>', line)
184184

0 commit comments

Comments
 (0)