Img tags without closing "/>"
alglez opened this issue · 1 comments
alglez commented
Hi,
again with importing img tags. I'm still importing some md files and i found another issue (previous: #34) related with the regex expression. I still found some images that are not properly imported. That's because img
tag not necessarily need a closing match />
and >
is enough. This can be seen in the example from the w3schools
<img src="img_girl.jpg" alt="Girl in a jacket" width="500" height="600">
So, again, probably the regex expression should be better like this:
pat = '<img (.*?)/?>'
So the /
is optional.
Nriver commented
Yes, you are right. Just made an update. https://github.com/Nriver/trilium-py/releases/tag/v0.8.8