2020-07-27 11:54:09 +05:30
|
|
|
import {renderMermaid} from './mermaid.js';
|
2021-05-23 19:44:03 +05:30
|
|
|
import {initMarkupTasklist} from './tasklist.js';
|
2020-07-27 11:54:09 +05:30
|
|
|
|
2021-05-23 19:44:03 +05:30
|
|
|
// code that runs for all markup content
|
|
|
|
export async function initMarkupContent() {
|
2020-08-05 01:26:37 +05:30
|
|
|
await renderMermaid(document.querySelectorAll('code.language-mermaid'));
|
2020-07-27 11:54:09 +05:30
|
|
|
}
|
2021-05-23 19:44:03 +05:30
|
|
|
|
|
|
|
// code that only runs for comments
|
|
|
|
export function initCommentContent() {
|
|
|
|
initMarkupTasklist();
|
|
|
|
}
|