Files
mainwebsite/patches/rehype-pretty-code+0.14.1.patch
SrIzan10 c9c6215f6a astro v2 website (#11)
* initial commit

* bento

* spotify and about me

* lol

* rose pine

* eff

* fix: small centering issue

* feat: latest posts view

* chore: temp filler

* feat: weather

* feat: discord status

* feat: remove old posts and add myself and some projects

* chore: generalize a bit

* chore: testing post and cloudflare ssr

* fix: prerender some more stuff

* feat: branding

* fix: cloudflare deployments

* feat: add lastfm profile

* feat: star rating

* feat: add discogs

* chore: add nocheck

* docs: barebones readme

* docs: try it out

* feat: writeup

* feat: some component stuff
2026-03-13 23:04:37 +01:00

13 lines
761 B
Diff

diff --git a/node_modules/rehype-pretty-code/dist/index.js b/node_modules/rehype-pretty-code/dist/index.js
index 9142858..9f59dc9 100644
--- a/node_modules/rehype-pretty-code/dist/index.js
+++ b/node_modules/rehype-pretty-code/dist/index.js
@@ -22,7 +22,7 @@ function isInlineCode(element, parent, bypass = false) {
return element.tagName === "code" && isElement(parent) && parent.tagName !== "pre" || element.tagName === "inlineCode";
}
function isBlockCode(element) {
- return element.tagName === "pre" && Array.isArray(element.children) && element.children.length === 1 && isElement(element.children[0]) && element.children[0].tagName === "code";
+ return false;
}
function getInlineCodeLang(meta, defaultFallbackLang) {
const placeholder = "\0";