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

Invalid markdown list rendering

    XMLWordPrintable

Details

    Description

      Numbered lists do not render correctly, and indentation is missing from the current markdown renderer. Attached is a screenshot of the problem, and the example input:

      1. Numbered item 1
       * Sub-list
      1. Numbered item 2
       * Sub-list
      1. Numbered item 3
       * Sub-list
      

      Results in the following invalid HTML output:

      <ol>
      	<li>Numbered item 1</li>
      </ol>
      <ul>
      	<li>Sub-list</li>
      </ul>
      <ol>
      	<li>Numbered item 2</li>
      </ol>
      <ul>
      	<li>Sub-list</li>
      </ul>
      <ol>
      	<li>Numbered item 3</li>
      </ol>
      <ul>
      	<li>Sub-list</li>
      </ul></div>
      

      Compare with expected output (using Github as an example):

      <ol>
      	<li>Numbered item 1
      		<ul>
      			<li>Sub-list</li>
      		</ul>
      	</li>
      	<li>Numbered item 2
      		<ul>
      			<li>Sub-list</li>
      		</ul>
      	</li>
      	<li>Numbered item 3
      		<ul>
      			<li>Sub-list</li>
      		</ul>
      	</li>
      </ol>
      

      In both HTML cases I changed whitespace indentation to be consistent for comparison.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              3566523deced Nathaniel Kofalt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: