From e7c464718b680aca2f32b7588958de5d60d53720 Mon Sep 17 00:00:00 2001 From: Vihan Date: Mon, 23 Jul 2018 17:24:00 -0700 Subject: [PATCH] Update util.js --- esdoc-publish-html-plugin/src/Builder/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esdoc-publish-html-plugin/src/Builder/util.js b/esdoc-publish-html-plugin/src/Builder/util.js index ad40943..f3ee8d6 100644 --- a/esdoc-publish-html-plugin/src/Builder/util.js +++ b/esdoc-publish-html-plugin/src/Builder/util.js @@ -80,7 +80,7 @@ export function markdown(text, breaks = false) { if (tag.match(//)) { return tag; } - const tagName = tag.match(/^<\/?(\w+)/)[1]; + const tagName = (tag.match(/^<\/?(\w+)/)||[])[1]; if (!availableTags.includes(tagName)) { return escape(tag); }