From 024d45a94093cf87b5eaa14f85df14ab671db751 Mon Sep 17 00:00:00 2001 From: Corey Ward Date: Tue, 14 May 2019 11:28:42 -0500 Subject: [PATCH] Ignore case when comparing element names against blacklist --- index.compiler.spec.js | 12 ++++++++++++ index.js | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/index.compiler.spec.js b/index.compiler.spec.js index 87cd2324..113bb473 100644 --- a/index.compiler.spec.js +++ b/index.compiler.spec.js @@ -2405,6 +2405,18 @@ $25 new Date(); +`); + }); + + it('does not parse the inside of '].join('\n'))); + + expect(root.innerHTML).toMatchInlineSnapshot(` + + + `); }); diff --git a/index.js b/index.js index d6a81f98..ac9b7508 100644 --- a/index.js +++ b/index.js @@ -1028,7 +1028,7 @@ export function compiler(markdown, options) { : parseInline; const noInnerParse = - DO_NOT_PROCESS_HTML_ELEMENTS.indexOf(capture[1]) !== -1; + DO_NOT_PROCESS_HTML_ELEMENTS.indexOf(capture[1].toLowerCase()) !== -1; return { attrs: attrStringToMap(capture[2]),