Use proportional font for email autolinks with obfuscation.
Closes #714.
commit26d30d6d38dca9e6c7fd5db812e5646e367ff5aa
authorJohn MacFarlane <jgm@berkeley.edu>
dateMon 21 Jan 2013, 11:28 (14 years ago)
parentaf84953
src/Text/Pandoc/Writers/HTML.hs+1−1
@@ -341,7 +341,7 @@ obfuscateLink opts txt s =
341341 at' = obfuscateChar '@'
342342 (linkText, altText) =
343343 if txt == drop 7 s' -- autolink
344− then ("'<code>'+e+'</code>'", name' ++ " at " ++ domain')
344+ then ("e", name' ++ " at " ++ domain')
345345 else ("'" ++ txt ++ "'", txt ++ " (" ++ name' ++ " at " ++
346346 domain' ++ ")")
347347 in case meth of
tests/writer.html+1−1
@@ -533,7 +533,7 @@ document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'Email link'+'<\/'+'a'+'>')
533533<p>An e-mail address: <script type="text/javascript">
534534<!--
535535h='nowhere.net';a='@';n='nobody';e=n+a+h;
536−document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'<code>'+e+'</code>'+'<\/'+'a'+'>');
536+document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>');
537537// -->
538538</script><noscript>nobody at nowhere dot net</noscript></p>
539539<blockquote>