git.iko.soy/typeable/pandoc
on master help sign in
Use proportional font for email autolinks with obfuscation.
26d30d6John MacFarlane
src/Text/Pandoc/Writers/HTML.hs+1−1
@@ -341,7 +341,7 @@ obfuscateLink opts txt s =
341 at' = obfuscateChar '@'
341 at' = obfuscateChar '@'
342 (linkText, altText) =
342 (linkText, altText) =
343 if txt == drop 7 s' -- autolink
343 if txt == drop 7 s' -- autolink
344− then ("'<code>'+e+'</code>'", name' ++ " at " ++ domain')
344+ then ("e", name' ++ " at " ++ domain')
345 else ("'" ++ txt ++ "'", txt ++ " (" ++ name' ++ " at " ++
345 else ("'" ++ txt ++ "'", txt ++ " (" ++ name' ++ " at " ++
346 domain' ++ ")")
346 domain' ++ ")")
347 in case meth of
347 in case meth of
tests/writer.html+1−1
@@ -533,7 +533,7 @@ document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'Email link'+'<\/'+'a'+'>')
533<p>An e-mail address: <script type="text/javascript">
533<p>An e-mail address: <script type="text/javascript">
534<!--
534<!--
535h='&#110;&#x6f;&#x77;&#104;&#x65;&#114;&#x65;&#46;&#110;&#x65;&#116;';a='&#64;';n='&#110;&#x6f;&#98;&#x6f;&#100;&#x79;';e=n+a+h;
535h='&#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'+'>');
537// -->
537// -->
538</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>
538</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>
539<blockquote>
539<blockquote>