Why are markdown bullet points separated by an extra newline?

aeiou

New Member
My markdown page contains these lines:\[code\]- [Section1](#section1) - [Subsection1](#subsection1) - [Subsection2](#subsection2)- [Section2](#section2)- [Section3](#section3)- [Section4](#section4)\[/code\]The expected output (assume each bullet is a hyperlink):\[quote\]
  • Section1
    • Subsection1
    • Subsection2
  • Section2
  • Section3
  • Section4
\[/quote\]The actual output (assume each bullet is a hyperlink):\[quote\]
  • Section1
    • Subsection1
    • Subsection2
       
  • Section2
  • Section3
  • Section4
\[/quote\]I don't know why Github/Jekyll server doesn't generate the expected output. When I viewed the source in the browser (Chrome), I found this (which is not expected):\[code\]<ul><li><p><a href='http://stackoverflow.com/questions/15541337/#section1'>Section1</a></p><ul><li><a href='http://stackoverflow.com/questions/15541337/#subsection1'>Subsection1</a></li><li><a href='http://stackoverflow.com/questions/15541337/#subsection2'>Subsection2</a></li></ul></li><li><p><a href='http://stackoverflow.com/questions/15541337/#section2'>Section2</a></p></li><li><p><a href='http://stackoverflow.com/questions/15541337/#section3'>Section3</a></p></li><li><p><a href='http://stackoverflow.com/questions/15541337/#section4'>Section4</a></p></li></ul>\[/code\]Why do I see \[code\]<p>\[/code\] tags here? Something wrong with the generator or my markdown code?How should I fix it?
 
Back
Top