2020-07-27 15:24:09 +09:00
|
|
|
import {renderMermaid} from './mermaid.js';
|
2021-05-23 23:14:03 +09:00
|
|
|
import {initMarkupTasklist} from './tasklist.js';
|
2020-07-27 15:24:09 +09:00
|
|
|
|
2021-05-23 23:14:03 +09:00
|
|
|
// code that runs for all markup content
|
2021-11-09 18:27:25 +09:00
|
|
|
export function initMarkupContent() {
|
|
|
|
const _promise = renderMermaid(document.querySelectorAll('code.language-mermaid'));
|
2020-07-27 15:24:09 +09:00
|
|
|
}
|
2021-05-23 23:14:03 +09:00
|
|
|
|
|
|
|
// code that only runs for comments
|
|
|
|
export function initCommentContent() {
|
|
|
|
initMarkupTasklist();
|
|
|
|
}
|