fix: CSP add cdn.jsdelivr.net, fix regex syntax, fix manifest PNG->SVG
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user