Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-2943

Markdown README render is incorrectly including newline characters when rendering paragraphs.

XMLWordPrintable

      In Markdown when you have consecutive lines separated by newline characters they should be treated as a single paragraph and therefore when rendered the newline characters inside a paragraph should be ignored.

      The attached png shows the incorrect rendering of the Markdown README in one of my projects. If you would like further detail on this check out the explanation at the following:

      http://daringfireball.net/projects/markdown/syntax#p

      If you want an example to reproduce this, the difference can be easily seen by having two paragraphs one that is defined on multiple lines in the markdown file and another that is defined on a single line. I have provided an example of each of these below.

      This is a paragraph that exists on multiple lines.
      This is the second line of the paragraph.
      This is the third line of the paragraph.
      This is the fourth line of the paragraph.

      This is a paragraph that exists on a single line. This is the second line of the paragraph. This is the third line of the paragraph. This is the fourth line of the paragraph.

      Note: I listed Repository - Source Page as the associated component but I believe the issue is much more wide spread as even as I am making this ticket in Jira I am seeing the same issue. I believe the issue is probably in the Markdown parser that you guys are using and that the issue should be resolved there. However, I didn't see a component for the markdown parser so please adjust the ticket as needed.

              mstudman Michael Studman (Inactive)
              979bbd6e3f33 Andrew De Ponte
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: