refactor, redesign

This commit is contained in:
hazycora 2023-08-03 02:06:43 -05:00
parent 83a9e85d3d
commit ff48d782c3
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
5 changed files with 46 additions and 20 deletions

View file

@ -2,4 +2,4 @@
satori, the HTML-to-SVG engine we use, has no concept of "inline" or "inline-block"
CSS display values. So, we must emulate them with flex-wrap and making each word a <span>...
*/ %>
<% for (const word of it.text.split(/\s+/)) { %><span><%= word %></span><% } %>
<% for (const word of it.text.split(/\s+/)) { %><span class="word"><%= word %></span><% } %>