Manuel Dell'Elce

Results 65 comments of Manuel Dell'Elce

Indeed, Substack isn't embedding the gist as an iframe like Medium, it is pullilng the HTML itself from the gist URL, which contains the warning as visible in your link.

Looking at [your link](https://gist.github.com/KyMidd/fb0cd10efd25909a66e7ff2016327d69.js) and executing the JS (it's a bunch of document.write calls), we can see that the unicode warnings are actually inside `template` elements and aren't actually rendered....

They have a custom `GitgistToDOM` component that sanitizes that HTML, only keeping allowed tags and attributes. ![image](https://github.com/Maluen/code-medium/assets/1434239/6bc41bfb-edb6-47f6-b498-ccfce8fc4eb1) ![image](https://github.com/Maluen/code-medium/assets/1434239/66d4db90-2732-4cf6-bde9-7ee3630f6f93) Unfortunately `template` isn't in the list of allowed tags: ```js ['address', 'article',...

There is a way the extension can avoid the error, it's kind of ugly but it works. Since the gist HTML is fetched with a client-side HTTP call, we can...

Done, included in v0.6.0