1
0
mirror of https://github.com/GenderDysphoria/GenderDysphoria.fyi.git synced 2025-11-25 12:32:42 +00:00

Catching a few more bugs

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-03-15 16:49:03 -07:00
parent 3d10c98f1c
commit 2aea19bd05
5 changed files with 22 additions and 9 deletions

View File

@@ -63,7 +63,12 @@ function markdown (mode, input, env) {
input = input.replace(/<!--[[\]]-->/g, '');
}
return input ? markdownEngines[mode].render(input, env) : '';
try {
return input ? markdownEngines[mode].render(input, env) : '';
} catch (e) {
log(input);
throw e;
}
}
function handlebars (input, env) {