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:
parent
b4d10598c9
commit
6021fbfe7a
9 changed files with 96 additions and 24 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue