Issue number is expanded when wrapped in a code tag

Created on 18 April 2024, 8 months ago

Problem/Motivation

Typing a number sign and an issue number enclosed in brackets results of the issue number being expanded to the issue number and title, and that text being styled based on the issue status. However, it also happens even when wrapped in a code tag, an unexpected result.

Steps to reproduce

  1. File a new issue
  2. Click in the issue description.
  3. Type a less than symbol, then the word "code" (without the quotes), then a greater than symbol
  4. Typing a left bracket, then a number sign, then "3441382" (without the quotes) then a right bracket
  5. Type a less than symbol, then a slash symbol, then the word "code" (without the quotes), then a greater than symbol
  6. Click Preview

    Expected result: I see a left bracket, then a number sign, then "3441382" (without the quotes) then a right bracket, all styled as code.

    Actual result: The issue number has been expanded to include the title (wrong) and styled as code (right)

  7. Click Save

    Expected result: I see a left bracket, then a number sign, then "3441382" (without the quotes) then a right bracket, all styled as code.

    Actual result: The issue number has been expanded to include the title (wrong) and styled as code (right)

  8. Repeat the above steps as a comment

    Expected result: I see a left bracket, then a number sign, then "3441382" (without the quotes) then a right bracket, all styled as code.

    Actual result: On both preview and save, the issue number has been expanded to include the title (wrong) and styled as code (right)

Here I have done the above instructions for steps 2 through 5:

πŸ› Navigation module gets error when added on simplytest.me Active

Trying with a backslash immediately before the left bracket:

\ πŸ› Navigation module gets error when added on simplytest.me Active

Hoped-for result: That it prevents the expansion (not that I would expect to need to do this; my expected result without the backslash stands)
Actual result: No effect

Proposed resolution

Don't expand issue number when wrapped in a code tag.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States charles belov San Francisco, CA, US

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024