Skip to content

Auto-linkify markdown text #7122

@pablobm

Description

@pablobm

In #6518 (and further in #6597) we implemented "linkification" in plain text: strings like node/123456 will automatically turn into links to features/etc in user comments.

Since this was only implemented for plain text, it only works in notes, note comments, changeset descriptions, and changeset comments, if I'm not missing anything. Text written in Markdown (diary entries, diary comments, direct messages, user profiles, etc) is not linkified.

So let's make this work in Markdown!

The problem is that we have to be careful with which specific text to linkify. For example we don't want to linkify inside code blocks (text rendered within <code> and <pre> elements), links (rendered with <a>)... and I'm not sure if others?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions