diff --git a/.changeset/cuddly-vans-reply.md b/.changeset/cuddly-vans-reply.md new file mode 100644 index 000000000..702aecc22 --- /dev/null +++ b/.changeset/cuddly-vans-reply.md @@ -0,0 +1,5 @@ +--- +'@astrojs/markdown-remark': patch +--- + +Remove `is:raw` from remark Shiki plugin diff --git a/packages/markdown/remark/src/remark-shiki.ts b/packages/markdown/remark/src/remark-shiki.ts index 6cd3861e5..58ed16369 100644 --- a/packages/markdown/remark/src/remark-shiki.ts +++ b/packages/markdown/remark/src/remark-shiki.ts @@ -76,8 +76,8 @@ export function remarkShiki({ // It would become this before hitting our regexes: // <span class="line" - // Replace "shiki" class naming with "astro" and add "is:raw". - html = html.replace(/
 {
+	const processor = await createMarkdownProcessor();
+
+	it('does not add is:raw to the output', async () => {
+		const {
+			code,
+		} = await processor.render('```\ntest\n```');
+
+		chai
+			.expect(code)
+			.not.to.contain("is:raw");
+	});
+});
\ No newline at end of file