fix: injecter SYNTAX_CSS après STYLES pour que les couleurs hljs l'emportent

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-19 15:58:29 +02:00
parent bcf647976c
commit 5a8e5f4cc9
+2 -2
View File
@@ -449,8 +449,8 @@ function htmlShell({ title, sidebar, body, watchMode }) {
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>"> <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Roboto+Mono&display=swap"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Roboto+Mono&display=swap">
<style>${SYNTAX_CSS}</style> <style>${STYLES}</style>
<style>${STYLES}</style>${noSidebarStyle} <style>${SYNTAX_CSS}</style>${noSidebarStyle}
</head> </head>
<body> <body>
${hasSidebar ? sidebar : ''} ${hasSidebar ? sidebar : ''}