Readme markdown bug: codeblock after colon-indent doesn't render properly (BB-8666)

agnes chang avataragnes chang created an issue

In my readme code I have:

###`/getcollections`

Returns all available collections which each represent a field through which ch\
anges can be tracked. Optionally returns a count of the number of records avail\
able in each collection.

**param** *count*

: optional. boolean.

**returns**

: json string of two possible formats:

    {
        names: [
            <string>,
            ...
        ]
    }

OR

    [
        {
            name:   <string>,
            count:  <int>
        },
        ...
    ]

This renders as bitbucket broken render

When it should render as working render

Comments (3)

  1. Brian Nguyen

    Hi Agnes,

    I've heard back from the developer of Python-Markdown. This particular bug won't be fixed in Python-Markdown and is classed as a "quirk" of markdown.

    As such I'm closing this issue. As I said before you can workaround this by using 3 backticks instead of indents.

    Cheers, Brian

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.