Skip to content

tag parse #15

@ljhierarch

Description

@ljhierarch

Hi, I find the case that
When the tag is <img></img>:
tomd.convert('''<p><img src="https://github.com" class="dsad"></img></p>''')
the parsed result is \n![](https://github.com)\n, which is what I expect,
But, when the tag is <img />:
tomd.convert('''<p><img src="https://github.com" class="dsad"/></p>''')
the result is: \n<img src=\"https://github.com\" class=\"dsad\"/>\n, so it seems that the self contained tag cannot be parsed.
Can we repair it?

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