novoid / lazyblorg

Blogging with Org-mode for very lazy people
GNU General Public License v3.0
397 stars 33 forks source link

Why no webp? #109

Open xeruf opened 2 months ago

xeruf commented 2 months ago

Just tried to embed a webp image, but the parser was not taking it because it is not in the matching expression: https://github.com/novoid/lazyblorg/blob/master/lib/orgparser.py#L131

    CUST_LINK_IMAGE_REGEX = re.compile(r'^\[\[tsfile:([^\]]+\.(png|jpg|jpeg|svg|gif))+(\]\[(.+))?\]\]$')

Simply forgotten or intentional?

novoid commented 2 months ago

I had no idea what webp is and I still don't know how its support by imagemagick is.

When you find out that this ought not to be an issue, I can extend the regex.