fix: CSP add cdn.jsdelivr.net, fix regex syntax, fix manifest PNG->SVG
CI / lint (push) Successful in 14s
CI / security (push) Successful in 8s
CI / test (push) Failing after 22s
CI / build (push) Has been skipped

This commit is contained in:
2026-06-04 23:50:10 -04:00
parent 00f32ce9c2
commit 69e86c239b
5 changed files with 27 additions and 42 deletions
+1 -2
View File
@@ -405,8 +405,7 @@ async function openEditor(vaultName, filePath) {
clearTimeout(mermaidTimer);
mermaidTimer = setTimeout(function() {
var content = state.editorView ? state.editorView.state.doc.toString() : (state.fallbackEditorEl ? state.fallbackEditorEl.value : '');
var match = content.match(/```mermaid
([\s\S]*?)```/);
var match = content.match(/```mermaid\n([\s\S]*?)```/);
if (match) {
previewPanel.style.display = 'block';
previewPanel.innerHTML = '';