hsiaoyaoyu / gitiles

Automatically exported from code.google.com/p/gitiles
0 stars 0 forks source link

Markdown: Unordered lists nested in ordered lists don't render correctly #95

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Use Gitiles to render the following Markdown output:

1. a
   * b
   * c
2. d

What is the expected output? What do you see instead?

The unordered list should be nested in the first ordered list item, and the 
second ordered list item should be part of the same ordered list as the first 
item.

HTML we want:

<ol>
  <li>a
  <ul>
    <li>b</li>
    <li>c</li>
  </ul></li>
  <li>d</li>
</ol>

HTML we get:

<ol>
  <li>a</li>
</ol>
<ul>
  <li>b</li>
  <li>c</li>
</ul>
<ol>
  <li>d</li>
</ol>

Example from Chromium: 
https://chromium.googlesource.com/chromium/src/+/master/tools/perf/docs/perf_bot
_sheriffing.md#testfailures

Original issue reported on code.google.com by eakuef...@chromium.org on 6 Jan 2016 at 6:53

GoogleCodeExporter commented 8 years ago

Original comment by dborowitz@google.com on 6 Jan 2016 at 6:55

GoogleCodeExporter commented 8 years ago
One more note: the linked example shows that the other way around, nesting an 
ordered list in an unordered list, does render properly.

Original comment by eakuef...@chromium.org on 6 Jan 2016 at 6:58