From 2944b34fd8d4528cf323655b98a25aa659aa5281 Mon Sep 17 00:00:00 2001 From: Nick Reese Date: Tue, 10 Nov 2020 12:36:44 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Wrap=20shortcodes=20in=20?= =?UTF-8?q?
=20so=20they=20don't=20get=20

=20wrapped?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/markdown/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/markdown/index.js b/packages/markdown/index.js index 93e4aad..4387d66 100644 --- a/packages/markdown/index.js +++ b/packages/markdown/index.js @@ -56,7 +56,10 @@ const plugin = { let match; while ((match = MDImgRegex.exec(md)) !== null) { const [fullMatch, alt, src] = match; - md = md.replace(fullMatch, `${openPattern}picture alt="${alt}" src="${src}" /${closePattern}`); + md = md.replace( + fullMatch, + `

${openPattern}picture alt="${alt}" src="${src}" /${closePattern}
`, + ); } }