1. Bitbucket Website
  2. Public Issue Tracker
  3. master

Issues

Issue #4211 invalid

Display of README.md as HTML

Matthias Buehlmaier
created an issue

The programming code in my README.md is not displayed properly. I've took two screenshots (attached). The first screenshot is from Bitbucket. The second one from a HTML file that I created (how it should look like). For completeness, I'm also attaching the README.md file.

Then there is also an issue with the indentation in lists. When I have several paragraphs, Bitbucket doesn't recognize it as being part of the list and indents it all the way to the left. I've also attached two screenshots.

Comments (3)

  1. Marcus Bertrand [Atlassian] staff

    Hello,

    The ::: notation in code blocks is used to tell the python markdown renderer what language the code being shown should be syntax highlighted as. If you add :::language to the top line of your indented block, the area will render properly.

    For example:

        :::javascript
        alert("Something");
    

    Check out https://confluence.atlassian.com/display/BITBUCKET/Displaying+README+Text+on+the+Overview#DisplayingREADMETextontheOverview-HighlightingcodesyntaxforPythonMarkdown for more details.

  2. Log in to comment