md2py
md2py copied to clipboard
links not supported / cause paragraphs to be skipped
from md2py import md2py
m = md2py('''# my h1
first paragraph
## first h2
yay
''')
m.h1.descendants
[<p>first paragraph</p>, <h2>first h2</h2>, <p>yay</p>]
Note that the first paragraph, <p>first paragraph</p>, is present, as expected.
Adding a link causes it to disappear:
from md2py import md2py
m = md2py('''# my h1
first paragraph [w link](https://google.com)
## first h2
yay
''')
m.h1.descendants
[<h2>first h2</h2>, <p>yay</p>]
I can't find any trace of it in the parse tree in this case.
Likely relates to #3.