Commit bc38bdb
committed
fix: terminal animation newlines escaped by Zola HTML minifier
Zola's minify_html converts '\n' inside JS strings to '\\n', producing
literal backslash-n instead of newlines. Use String.fromCharCode(10)
via a NL variable to avoid minifier interference.1 parent 8f8d063 commit bc38bdb
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1226 | 1226 | | |
1227 | 1227 | | |
1228 | 1228 | | |
| 1229 | + | |
1229 | 1230 | | |
1230 | 1231 | | |
1231 | 1232 | | |
| |||
1272 | 1273 | | |
1273 | 1274 | | |
1274 | 1275 | | |
1275 | | - | |
| 1276 | + | |
1276 | 1277 | | |
1277 | 1278 | | |
1278 | 1279 | | |
1279 | | - | |
| 1280 | + | |
1280 | 1281 | | |
1281 | 1282 | | |
1282 | 1283 | | |
1283 | 1284 | | |
1284 | 1285 | | |
1285 | 1286 | | |
1286 | | - | |
| 1287 | + | |
1287 | 1288 | | |
1288 | 1289 | | |
1289 | 1290 | | |
| |||
0 commit comments