Skip to content

Commit

Permalink
fix(jekyll): fail markdownify gracefully if the input is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Mar 3, 2022
1 parent caea7e4 commit 3238f8d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import kramed from 'kramed';
*/
export default function (Liquid) {
this.registerFilter('markdownify', (input) => {
return kramed(input);
return kramed(input ?? "");
});
}

0 comments on commit 3238f8d

Please sign in to comment.