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:
Bill Garrett
2023-01-02 14:03:02 -08:00
committed by GitHub
parent 71990af059
commit 2f90e668cd
16 changed files with 25402 additions and 5246 deletions

View File

@@ -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);