0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 17:22:50 +01:00
gitea/web_src/js/markdown/content.js
silverwind e61c09ed73
Add loading spinners and mermaid error handling (#12358)
- Add loading spinners on editor and mermaid renderers
- Add error handling and inline error box for mermaid
- Fix Mermaid rendering by using the .init api
2020-08-04 20:56:37 +01:00

5 lines
178 B
JavaScript

import {renderMermaid} from './mermaid.js';
export default async function renderMarkdownContent() {
await renderMermaid(document.querySelectorAll('code.language-mermaid'));
}