From 3238f8df522875b2d627ee10c9ddaf7f1f4d1c18 Mon Sep 17 00:00:00 2001 From: Liam Bigelow Date: Tue, 1 Mar 2022 11:21:27 +1300 Subject: [PATCH] fix(jekyll): fail markdownify gracefully if the input is undefined --- .../engines/jekyll-engine/lib/plugins/markdownify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript-modules/engines/jekyll-engine/lib/plugins/markdownify.js b/javascript-modules/engines/jekyll-engine/lib/plugins/markdownify.js index c2dade27..2872bdaa 100644 --- a/javascript-modules/engines/jekyll-engine/lib/plugins/markdownify.js +++ b/javascript-modules/engines/jekyll-engine/lib/plugins/markdownify.js @@ -5,6 +5,6 @@ import kramed from 'kramed'; */ export default function (Liquid) { this.registerFilter('markdownify', (input) => { - return kramed(input); + return kramed(input ?? ""); }); } \ No newline at end of file