1
0
Fork 0
forked from forgejo/forgejo

Make tasklist checkboxes clickable (#15791)

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
KN4CK3R 2021-05-23 16:14:03 +02:00 committed by GitHub
parent b4d10598c9
commit 6021fbfe7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 96 additions and 24 deletions

View file

@ -1,5 +1,12 @@
import {renderMermaid} from './mermaid.js';
import {initMarkupTasklist} from './tasklist.js';
export async function renderMarkupContent() {
// code that runs for all markup content
export async function initMarkupContent() {
await renderMermaid(document.querySelectorAll('code.language-mermaid'));
}
// code that only runs for comments
export function initCommentContent() {
initMarkupTasklist();
}