~sircmpwn/todo.sr.ht#219: 
Multi-line markdown code blocks render expand ticket mentions

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&#39;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&#39;t return to the previous page">#1</a>
Status
REPORTED
Submitter
~jmaibaum
Assigned to
No-one
Submitted
1 year, 3 months ago
Updated
9 months ago
Labels
No labels applied.

~alextee closed duplicate ticket #237 10 months ago

~devdanzin 9 months ago

From #236:

We can fix this by detecting that an inner token from a URL (Link) is an email (PlainLink with mailto == 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 than render_raw_text.

Register here or Log in to comment, or comment via email.