Commit 792fd5ba authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Plugin mermaid: affiche les erreurs dans la page.

Plutôt que seulement dans la console.
No related merge requests found
Pipeline #13342 passed with stages
in 1 minute and 43 seconds
Showing with 2 additions and 0 deletions
+2 -0
......@@ -55,6 +55,8 @@ class MermaidPlugin {
}
);
} catch (error) {
element.textContent += `\n\nMermaid ${error}`;
element.setAttribute("data-processed", true);
reject(error);
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment