fix: Mermaid test file fixes (accents, escaping) + preprocessObsidian call in renderMermaidBlocks
This commit is contained in:
@@ -93,6 +93,8 @@ export async function renderMermaidBlocks(container) {
|
||||
if (wrapper.querySelector('.mermaid-rendered')) continue;
|
||||
|
||||
try {
|
||||
// Preprocess Obsidian syntax before Mermaid parsing (#24)
|
||||
code = preprocessObsidian(code);
|
||||
await mermaid.parse(code);
|
||||
var id = 'mermaid-' + (++_renderCounter) + '-' + Date.now();
|
||||
var result = await mermaid.render(id, code);
|
||||
|
||||
Reference in New Issue
Block a user