Skip to content

links not supported / cause paragraphs to be skipped #5

@ryan-williams

Description

@ryan-williams
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions