Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-12669

Markdown code block does not display correctly on site (BB-16056)

    XMLWordPrintable

Details

    Description

      Our Markdown guide states that “Markdown wraps a code block in both <pre> and <code> tags.”. This doesn’t seems to be the case when I do a code block inside ordered or unordered lists and when the markdown file is displayed on your website. (Again, I followed here to put a code block inside a list: https://gist.github.com/clintel/1155906). When it’s displayed on your web site, the code block is wrapped in <p><code>...</code></p>, resulting in multiple lines of code being displayed in one line. Other markdown to html tools rendered the correct html format. If I use browser’s dev tool to change <p> </p>to <pre></pre>, it also displays correctly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jyowell Jesse Yowell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: