Markdown code blocks expand ticket mentions into full HTML links. I.e. putting #1
into a multi-line code block will result in the following:
<a href="/~sircmpwn/todo.sr.ht/1" title="~sircmpwn/todo.sr.ht#1: Login redirect doesn't return to the previous page">#1</a>
See below for the current live behavior:
<a href="/~sircmpwn/todo.sr.ht/1" title="~sircmpwn/todo.sr.ht#1: Login redirect doesn't return to the previous page">#1</a>
From #236:
We can fix this by detecting that an inner token from a URL (
Link
) is an email (PlainLink
withmailto == True
), then rendering the email as text. Test is in patch, using your example and each part separately renders fine. Adding extraneous HTML to the email text seems to be filtered, but there might be a safer way thanrender_raw_text
.