Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Escaping git commit reference in markdown

Gary Giesen April 30, 2024

Is there a way to escape git commit references in Markdown? I have a list of UUIDs that Bitbucket thinks the first part of is a git commit reference, and is generating links to (non-existent) commits.

The list looks like this:

- 95ffdfaf-f5bd-419a-bb79-1a4a36848df3
- 330b20cc-5c7f-4e6f-bfa5-c3606f2b4558
- 3b287b0c-044e-4d81-9432-96ade4efdb61

and the part from the beginning to the first hyphen is being treated as a reference to a commit hash. I tried escaping with `\` but that does not work.

 

https://support.atlassian.com/bitbucket-cloud/docs/highlight-syntax-and-mark-up-issues/ makes no reference to how to escape the automatic reference generation.

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 1, 2024

G'day, Gary

Thanks for raising this with us. I am checking this and will get back to you with an update once I have any.

However, I believe it's possible to escape the reference if you use code block for example:

```
- 95ffdfaf-f5bd-419a-bb79-1a4a36848df3
- 330b20cc-5c7f-4e6f-bfa5-c3606f2b4558
- 3b287b0c-044e-4d81-9432-96ade4efdb61

```

Let me know if that works for you.

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events