fix: correct Milkdown Crepe CDN stylesheet paths by adding /lib/ prefix

This commit is contained in:
2026-06-08 14:09:09 +02:00
parent 6bfd851cdf
commit 5d67bbf88b
@@ -32,8 +32,8 @@ export async function initEditor(elementId, dotNetHelper, initialMarkdown) {
try {
// Condition 2: Prevent FOUC by loading stylesheets before instantiating the editor
await Promise.all([
injectStylesheet('https://esm.sh/@milkdown/crepe/theme/common/style.css'),
injectStylesheet('https://esm.sh/@milkdown/crepe/theme/frame.css')
injectStylesheet('https://esm.sh/@milkdown/crepe/lib/theme/common/style.css'),
injectStylesheet('https://esm.sh/@milkdown/crepe/lib/theme/frame.css')
]);
// Dynamically import the Crepe ESM module