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); }