md2py icon indicating copy to clipboard operation
md2py copied to clipboard

links not supported / cause paragraphs to be skipped

Open ryan-williams opened this issue 5 years ago • 0 comments

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.

ryan-williams avatar Oct 20 '20 15:10 ryan-williams