Code Pasted into PR Comments No Longer Auto-Formats as Inline Code

XMLWordPrintable

    • 2
    • Severity 3 - Minor
    • 345

      Issue Summary

      Pasted code in Bitbucket PR comments is no longer auto-formatted as inline code, but appears as bold/plaintext instead

      Steps to Reproduce

      Step 1:
      Navigate to an open Pull Request in Bitbucket.
      Step 2:
      Copy a snippet of code from the diff view or file view, and paste it directly into the comment editor within the PR.

      Expected Results

      Pasted code should automatically be formatted as inline code using the standard code styling as it previously worked.

      Actual Results

      The pasted content appears as bold with no automatic inline code formatting. PFA the screenshot of the same
      The behavior is observed in the UI and also confirmed across different browsers and PRs

      Workaround

      Users can manually format the code as inline by:

      Option 1:

      • Type triple backtick (```) into the comment editor to format subsequent text as code
      • Paste the line of code from the diff view

      Option 2:

      • Selecting the pasted text
      • Clicking the editor’s three-dot icon
      • Choosing "Code" from the formatting options

      This will apply inline code formatting to the selected text.

            Assignee:
            Unassigned
            Reporter:
            Abhay Gupta
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: