borismus / markdown-preview

Enables Chrome to render markdown files as HTML
http://smus.com
217 stars 42 forks source link

Fix nested list syntax #39

Open bjcubsfan opened 10 years ago

bjcubsfan commented 10 years ago

For markdown, Github indents bullets in a list so that it the items are nested if each level is indented two spaces like this:

Input text:

* Testing Testing, 1, 2, 3
  * Testing Testing, 1, 2, 3
    * Testing Testing, 1, 2, 3
      * Testing Testing, 1, 2, 3
        * Testing Testing, 1, 2, 3
          * Testing Testing, 1, 2, 3

Rendered:

I didn't see this in the markdown spec, but I would like markdown-preview to do this. Or maybe there should be a version for Github flavored markdown.

Thanks!

fabb commented 9 years ago

+1