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.
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
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:
When saving, on first glance it looks fine. Making you think "it came through! yay!"
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!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.