2020-07-27 00:24:09 -06:00
|
|
|
import {renderMermaid} from './mermaid.js';
|
2021-05-23 08:14:03 -06:00
|
|
|
import {initMarkupTasklist} from './tasklist.js';
|
2020-07-27 00:24:09 -06:00
|
|
|
|
2021-05-23 08:14:03 -06:00
|
|
|
// code that runs for all markup content
|
|
|
|
export async function initMarkupContent() {
|
2020-08-04 13:56:37 -06:00
|
|
|
await renderMermaid(document.querySelectorAll('code.language-mermaid'));
|
2020-07-27 00:24:09 -06:00
|
|
|
}
|
2021-05-23 08:14:03 -06:00
|
|
|
|
|
|
|
// code that only runs for comments
|
|
|
|
export function initCommentContent() {
|
|
|
|
initMarkupTasklist();
|
|
|
|
}
|