git.iko.soy/typeable/pandoc
on master help sign in
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
2 files changed+2−2
src/Text/Pandoc/Writers/HTML.hs+1−1 tests/writer.html+1−1
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='&#110;&#x6f;&#x77;&#104;&#x65;&#114;&#x65;&#46;&#110;&#x65;&#116;';a='&#64;';n='&#110;&#x6f;&#98;&#x6f;&#100;&#x79;';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>&#110;&#x6f;&#98;&#x6f;&#100;&#x79;&#32;&#x61;&#116;&#32;&#110;&#x6f;&#x77;&#104;&#x65;&#114;&#x65;&#32;&#100;&#x6f;&#116;&#32;&#110;&#x65;&#116;</noscript></p>
539539<blockquote>