nested links

Stephen Haberman stephenh at chase3000.com
Sat Dec 18 10:21:21 EST 2004


Hi,

 

Putting:

 

* [Tab](tab.html)

  * [Tab](tab.html)

    * [Tab](tab.html)

 

Through a virgin Markdown-1.0.1.pl results in:

 

<ul>

<li><a href="tab.html">Tab</a>

<ul>

<li><a href="tab.html">Tab</a></li>

<li><a href="tab.html">Tab</a></li>

</ul></li>

</ul>

 

Note that the 2nd and 3rd "Tab" links are missing a <ul> between them.

 

This is best illustrated by looking at the MarkdownTest "Ordered and
Unordered lists" Nested example, which with similar but non-link nested
"Tabs" gives:

 

<ul>

<li>Tab

<ul>

<li>Tab

<ul>

<li>Tab</li>

</ul></li>

</ul></li>

</ul>

 

(Bold added by me for emphasis)

 

Oddly enough, if I put an extra space in front of each of the 3 asterisks
(currently the first asterisk is flush left), then the problem goes away,
and all three levels are properly indented:

 

<ul>

<li><a href="tab.html">Tab</a>

<ul>

<li><a href="tab.html">Tab</a>

<ul>

<li><a href="tab.html">Tab</a></li>

</ul></li>

</ul></li>

</ul>

 

- Stephen

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://six.pairlist.net/pipermail/markdown-discuss/attachments/20041218/594b7dae/attachment-0001.html


More information about the Markdown-Discuss mailing list