Use proportional font for email autolinks with obfuscation.
Closes #714.
This commit is contained in:
parent
af84953781
commit
26d30d6d38
2 changed files with 2 additions and 2 deletions
|
@ -341,7 +341,7 @@ obfuscateLink opts txt s =
|
||||||
at' = obfuscateChar '@'
|
at' = obfuscateChar '@'
|
||||||
(linkText, altText) =
|
(linkText, altText) =
|
||||||
if txt == drop 7 s' -- autolink
|
if txt == drop 7 s' -- autolink
|
||||||
then ("'<code>'+e+'</code>'", name' ++ " at " ++ domain')
|
then ("e", name' ++ " at " ++ domain')
|
||||||
else ("'" ++ txt ++ "'", txt ++ " (" ++ name' ++ " at " ++
|
else ("'" ++ txt ++ "'", txt ++ " (" ++ name' ++ " at " ++
|
||||||
domain' ++ ")")
|
domain' ++ ")")
|
||||||
in case meth of
|
in case meth of
|
||||||
|
|
|
@ -533,7 +533,7 @@ document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'Email link'+'<\/'+'a'+'>')
|
||||||
<p>An e-mail address: <script type="text/javascript">
|
<p>An e-mail address: <script type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
h='nowhere.net';a='@';n='nobody';e=n+a+h;
|
h='nowhere.net';a='@';n='nobody';e=n+a+h;
|
||||||
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+'<code>'+e+'</code>'+'<\/'+'a'+'>');
|
document.write('<a h'+'ref'+'="ma'+'ilto'+':'+e+'">'+e+'<\/'+'a'+'>');
|
||||||
// -->
|
// -->
|
||||||
</script><noscript>nobody at nowhere dot net</noscript></p>
|
</script><noscript>nobody at nowhere dot net</noscript></p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
|
|
Loading…
Reference in a new issue