1
0
Fork 0
forked from forgejo/forgejo

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
This commit is contained in:
silverwind 2020-08-04 21:56:37 +02:00 committed by GitHub
parent 5e5c893555
commit e61c09ed73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 148 additions and 27 deletions

View file

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