:auto_linker shouldn't strip prefix in code blocks #14

Open
opened 2019-07-21 20:18:54 +00:00 by sjw · 2 comments
Member

:auto_linker strips prefix in code blocks. I feel it should also not hyperlink URLs in code blocks but that's likely debatable so maybe make that behavior configurable.

:auto_linker strips prefix in code blocks. I feel it should also not hyperlink URLs in code blocks but that's likely debatable so maybe make that behavior configurable.

code blocks

is this for <pre> or <code> blocks

> code blocks is this for `<pre>` or `<code>` blocks
Owner

I would tend to say both.

  • pre stands for preformatted so we can expect that the content is already formatted, but it tends to be used for stuff like ancient-ASCII stuff like RFCs where auto-linking could be used
  • it should definitely be disabled in code

In both cases the plain-text representation shouldn't be changed.

I would tend to say both. - `pre` stands for preformatted so we can expect that the content is already formatted, but it tends to be used for stuff like ancient-ASCII stuff like RFCs where auto-linking could be used - it should definitely be disabled in `code` In both cases the plain-text representation shouldn't be changed.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma-elixir-libraries/linkify#14
No description provided.