jeffersonlicet / snipped

🖥️ 🖼️ Create fancy screenshots of your code without leaving the editor.
https://marketplace.visualstudio.com/items?itemName=jeffersonlicet.snipped
108 stars 5 forks source link

Fix percentage encoding bug in SVG screenshots #9

Closed ghost closed 3 years ago

ghost commented 3 years ago

During the XHTML conversion process, the characters %25 and %23 get encoded as well. Let's decode these to fix # and % in SVG screenshots.

Refs: https://github.com/1904labs/dom-to-image-more/blob/v2.9.1/src/dom-to-image-more.js#L623