From d07f04381d87dad3ea883360abed3e29e154c5fe Mon Sep 17 00:00:00 2001 From: tomcollins Date: Wed, 22 Mar 2023 21:32:29 +0000 Subject: [PATCH] Add yaml extension support to render-markdown --- lib/renderer-markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/renderer-markdown.js b/lib/renderer-markdown.js index 2eeaf59..16d7321 100644 --- a/lib/renderer-markdown.js +++ b/lib/renderer-markdown.js @@ -16,7 +16,7 @@ const readFile = util.promisify(fs.readFile); Handlebars.registerHelper("isExternalRef", function (value) { return ( typeof value === "string" && - (value.match(/^(.+)#/) || value.match(/^(.+)\.(json|yml)$/)) + (value.match(/^(.+)#/) || value.match(/^(.+)\.(json|yaml|yml)$/)) ); }); Handlebars.registerHelper("getHtmlAnchorForRef", function (ref, label) {