forked from github.com/GenderDysphoria.fyi
Migrate to Node 16 (#118)
* Node 16: fix build dependencies * Node 16: fix Bootstrap dependency problem * Node 16: fix error in HTML writer * Node 16: move await to proper place (h/t alliejones)
This commit is contained in:
@@ -66,7 +66,7 @@ function markdown (mode, input, data, hbs) {
|
||||
input = stripHtml(input
|
||||
.replace(/<!--\[[\s\S]*?\]-->/g, '')
|
||||
.replace(/æææ[\s\S]*?æææ/gi, '')
|
||||
.replace(/\{!\{([\s\S]*?)\}!\}/mg, ''),
|
||||
.replace(/\{!\{([\s\S]*?)\}!\}/mg, '')
|
||||
).result.trim();
|
||||
if (input.length > 1000) input = input.slice(0, 1000) + '…';
|
||||
|
||||
@@ -276,7 +276,7 @@ class Injectables {
|
||||
const frame = handybars.makeContext(hash, env);
|
||||
try {
|
||||
const contents = self._template(tpath, (s) =>
|
||||
handybars(`<span class="svg-icon" style="{{#if this.size}}width:{{this.size}};height:{{this.size}};{{/if}}{{this.style}}">${s}</span>`),
|
||||
handybars(`<span class="svg-icon" style="{{#if this.size}}width:{{this.size}};height:{{this.size}};{{/if}}{{this.style}}">${s}</span>`)
|
||||
)(frame);
|
||||
|
||||
return handybars.safe(contents);
|
||||
|
||||
Reference in New Issue
Block a user