Summary
There are some inconsistencies when trying to render the following in markdown:
line 1 line 2 line 3 line 4
On CommonMark dingus, the above should be rendered as the following:
However, on Bitbucket Server, similar markdown file will be rendered as the following instead:
- has a derivative of
-
BSERV-10554 Markdown soft line syntax inconsistency in Pull Request view
-
- Closed
-
- relates to
-
BSERV-10533 Markdown syntax guide should correctly describe difference between soft and hard line breaks
-
- Closed
-
Form Name |
---|
1cf7ba0d1876,
Ah, that is a good clue actually. I think you're using Bitbucket Cloud (i.e. https://bitbucket.org) rather than the self-hosted Bitbucket Server.
I pasted your code locally into a Bitbucket Server instance and couldn't reproduce this, but I could reproduce it on Bitbucket Cloud.
After editing the markdown file to add an additional line break above the list items, I can see it renders correctly:
The code for which is:
Note that this is correct for Markdown, which is what Bitbucket Cloud uses, however in the CommonMark spec, it is noted that they explicitly opted to allow for this.
I've created a bug in the Bitbucket Cloud project to track this: BCLOUD-21100, you can follow that to get updates on its progress.
Regards,
John van der Loo
Developer, Bitbucket Server