Files
Atay-Makhzan/web_src/js/markup/content.js
T

19 lines
486 B
JavaScript
Raw Normal View History

2020-07-27 08:24:09 +02:00
import {renderMermaid} from './mermaid.js';
2022-09-13 17:33:37 +01:00
import {renderMath} from './math.js';
import {renderCodeCopy} from './codecopy.js';
import {renderAsciicast} from './asciicast.js';
2021-05-23 16:14:03 +02:00
import {initMarkupTasklist} from './tasklist.js';
2020-07-27 08:24:09 +02:00
2021-05-23 16:14:03 +02:00
// code that runs for all markup content
export function initMarkupContent() {
renderMermaid();
2022-09-13 17:33:37 +01:00
renderMath();
renderCodeCopy();
renderAsciicast();
2020-07-27 08:24:09 +02:00
}
2021-05-23 16:14:03 +02:00
// code that only runs for comments
export function initCommentContent() {
initMarkupTasklist();
}