summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/src/remark-shiki.ts
diff options
context:
space:
mode:
authorGravatar Chris <mail@prass.tech> 2023-10-04 12:23:58 +0200
committerGravatar GitHub <noreply@github.com> 2023-10-04 18:23:58 +0800
commit21f4826576c2c812a1604e18717799da3470decd (patch)
treedecf4d6b5f2f939f8e1d2df509ebdd143d1695d2 /packages/markdown/remark/src/remark-shiki.ts
parent71618f4074244ec203d154788b4aff29fce094dd (diff)
downloadastro-21f4826576c2c812a1604e18717799da3470decd.tar.gz
astro-21f4826576c2c812a1604e18717799da3470decd.tar.zst
astro-21f4826576c2c812a1604e18717799da3470decd.zip
Fixes: Shiki syntax highlighting adds is:raw attribute to the HTML output (#8715)
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Diffstat (limited to 'packages/markdown/remark/src/remark-shiki.ts')
-rw-r--r--packages/markdown/remark/src/remark-shiki.ts4
1 files changed, 2 insertions, 2 deletions
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:
// &lt;span class=&quot;line&quot;
- // Replace "shiki" class naming with "astro" and add "is:raw".
- html = html.replace(/<pre class="(.*?)shiki(.*?)"/, `<pre is:raw class="$1astro-code$2"`);
+ // Replace "shiki" class naming with "astro".
+ html = html.replace(/<pre class="(.*?)shiki(.*?)"/, `<pre class="$1astro-code$2"`);
// Add "user-select: none;" for "+"/"-" diff symbols
if (node.lang === 'diff') {
html = html.replace(