Fix nested elements inside lists

"# foo" should be parsed as "h1", not as a continuation
---
   -   test
       # foo
---