refactor, redesign
This commit is contained in:
parent
83a9e85d3d
commit
ff48d782c3
5 changed files with 46 additions and 20 deletions
|
@ -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><% } %>
|
Loading…
Add table
Add a link
Reference in a new issue