Hyperlinking email addresses in monospaced formatted text


(PJH) #1

Continuing the discussion from Markdown Table Support in a discourse topic?:

4 space indent:

<a href="mailto:a@example.com">a@example.com</a>
<a href="mailto:b@example.com">b@example.com</a>
<a href="mailto:c@example.com">c@example.com</a>

`­`­` (code fence):

<a href="mailto:a@example.com">a@example.com</a>
<a href="mailto:b@example.com">b@example.com</a>
<a href="mailto:c@example.com">c@example.com</a>

<pre>:

a@example.com
b@example.com
c@example.com

<code>:

a@example.com
b@example.com
c@example.com

<tt>:

a@example.com
b@example.com
c@example.com

Raw of this post for reference: https://meta.discourse.org/raw/31238/1


Edit to rebake post…


Left clicking /raw/ links return 404 errors
Code-fence and <pre> formatting require preceding blank lines to render correctly in cooked
(PJH) #2

And clearly the code-fence and <pre> didn’t quite turn out as expected there…

Worked around.


(Allen - Watchman Monitoring) #3

Maybe a screenshot of what you thought was going to happen?


(PJH) #4

You mean like I did in the link in my second post? (bottom right)

https://discourse-meta.s3-us-west-1.amazonaws.com/optimized/3X/2/a/2a5457da09eacbda00e898ecf8f83e61dd64739e_1_689x383.png


(Allen - Watchman Monitoring) #5

Ha! thanks… the first URL 404’d on me, I hadn’t tried the second.