Skip to content

Escape autocomplete results for Markdown

Sean McGivern requested to merge escape-autocomplete-values-for-markdown into master

What does this MR do?

When you insert something from autocomplete, we insert the literal value. But it's possible to include special characters (from a Markdown perspective) in that value. This is especially true for labels and milestones.

It's hard to fix this on the backend, because we first process the Markdown to HTML, then process references. But there's already a workaround: escape those characters with a backslash. And as these are often inserted using autocomplete, we can change that to escape things correctly!

Before

Backslash_before

After

Backslash_after

Does this MR meet the acceptance criteria?

  • Changelog entry added, if necessary
  • Tests added for this feature/bug
  • Review
    • Has been reviewed by Frontend

Merge request reports