commit 2f6b4cce4019c9c82666692e4d86ca8076bc0641
parent 21ce8eed11713c59fe542d23ef266a36010e5c96
Author: Florian Dold <florian.dold@gmail.com>
Date: Mon, 18 Jan 2016 02:07:25 +0100
Add underline to source code links.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/exts/tsref.py b/exts/tsref.py
@@ -57,7 +57,7 @@ class LinkingHtmlFormatter(HtmlFormatter):
cls = self._get_css_class(tok)
href = tok_getprop(tok, "href")
if href:
- value = '<a style="color:inherit" href="%s">%s</a>' % (href, value)
+ value = '<a style="color:inherit;text-decoration:underline" href="%s">%s</a>' % (href, value)
if cls is None or cls == "":
return value
return '<span class="%s">%s</span>' % (cls, value)