Code block input is broken in bitbucket web UI

Martin Häusler
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 8, 2024

Previously, it was possible to insert a code block in bitbucket web UI by pressing triple backticks (```). This was very useful, however, this feature seems to be currently broken. I can insert as many backticks as I want, I won't get a code block. Suffice to say, in code reviews this is enormously annoying when I want to provide an example.

My current workaround is to type triple backticks, followed by a character, followed by another triple backtick, like so:

```d```

 

This actually inserts a code block, but I have to delete the stuff before afterwards again.

 

Please fix this.

 

EDIT: It seems to be broken only for in-line comments. For comments on the PR itself, the triple backtick does open a code block.

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2024

Hi Martin,

Are you still experiencing issues with this? I tried to reproduce the issue just now and the triple backticks insert a code block both in PR comments and also in comments created on PR files.

If you're still experiencing issues, can you please clarify where exactly you are adding the comment and also what browser you are using?

Kind regards,
Theodora

William Lightning
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 11, 2025

I suspect Martin is running into the following:

My experience is this bites me in things like under numbered steps.

 

While editing, it looks fine.. I put two code blocks, one without it being as part of a step:

Screenshot 2025-02-11 at 1.53.36 PM.png

 

When saving, on first glance it looks fine. Making you think "it came through! yay!"

Screenshot 2025-02-11 at 1.53.54 PM.png

 

However when someone comes along and looks at your PR (or if you just refresh the page), suddenly the code block under your test step is completely mangled. The one that's just on it's own in the description remains though!

Screenshot 2025-02-11 at 1.54.14 PM.png

 

 

This used to work everywhere, but has progressively infected all fields of the PR. For a while the description was just broken, but you could still do it in comments. Now you can't do it in comments.

 

Like Maka likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 12, 2025

Hi William,

Thank you for reaching out.

I was able to reproduce this and I saw that we have an open bug report about this here:

You can select the link This affects my team in the bug report to indicate you are affected by this issue. You can also add yourself as a watcher (by selecting the link Start watching this issue) if you'd like to get notified via email on updates.

Bug fixing is implemented as per our policy here and updates will be posted in the bug report ticket.

I'm afraid that there is no workaround at the moment other than not using the code block in a list. Instead of a creating a list, you could use just numbers as follows so that the code blocks are readable, until this issue is fixed:

Screenshot 2025-02-12 at 11.33.39.png

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events