rehamaltamimi / gwtwiki

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

Ordered lists nested inside of un-ordered lists does not render properly (inverse fails too) #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create the following wiki markup and run it through the parser.
SAMPLE A:
# item 1
** item 1.1
** item 1.2
# item 2

or this:
SAMPLE B:
*item 1
## item 1.1
## item 1.2
* item 2
2.
3.

What is the expected output? What do you see instead?
For sample A, I am expecting an order list, with an unordered list nested
under item 1.
For Sampel B, I am expecting an unordered list, with an ordered list nested
inside of item 1.

What version of the product are you using? On what operating system?
bliki-core-3.0.13

INSTEAD, I see that the nested sub-lists are improperly formed. The
generated HTML looks like:
<p>SAMPLE A:
</p>

<ol>
  <li>item 1</li>
</ol>
<ul>
  <li>
    <ul>
      <li>item 1.1</li>
      <li>item 1.2</li>
    </ul>
  </li>
</ul>
<ol>
  <li>item 2</li>
</ol>

<p>or this:
SAMPLE B:
</p>
<ul>
  <li>item 1</li>
</ul>
<ol>
  <li>
    <ol>
      <li>item 1.1</li>
      <li>item 1.2</li>
    </ol>
  </li>
</ol>
<ul>
  <li>item 2</li>
</ul>

Please provide any additional information below.

Original issue reported on code.google.com by steven.b...@gmail.com on 24 Jul 2009 at 5:41

GoogleCodeExporter commented 8 years ago
I think it's the same renderin, that Wikipedia does in the Sandbox:
http://en.wikipedia.org/wiki/Wikipedia:Sandbox

You probably want to use this wiki syntax for nested lists:

SAMPLE A:
# item 1
#* item 1.1
#* item 1.2
# item 2

SAMPLE B:
*item 1
*# item 1.1
*# item 1.2
* item 2

Original comment by axelclk@gmail.com on 24 Jul 2009 at 5:53

GoogleCodeExporter commented 8 years ago
You are correct! Mea culpa.
Thank you for pointing out the correct syntax. 

Original comment by steven.b...@gmail.com on 24 Jul 2009 at 6:25

GoogleCodeExporter commented 8 years ago
However, it looks like this:

*item 1
*# item 1.1
*# item 1.2
* item 2

Does not render the numbered list with <ol> but with <ul> (no numbers just 
bullets
for inner list).

Original comment by steven.b...@gmail.com on 24 Jul 2009 at 6:29