2025-03-04 03:49:15 +08:00
|
|
|
import {initMarkupCodeMermaid} from './mermaid.ts';
|
|
|
|
import {initMarkupCodeMath} from './math.ts';
|
|
|
|
import {initMarkupCodeCopy} from './codecopy.ts';
|
|
|
|
import {initMarkupRenderAsciicast} from './asciicast.ts';
|
2024-07-07 17:32:30 +02:00
|
|
|
import {initMarkupTasklist} from './tasklist.ts';
|
2025-03-04 03:49:15 +08:00
|
|
|
import {registerGlobalSelectorFunc} from '../modules/observer.ts';
|
2020-07-27 08:24:09 +02:00
|
|
|
|
2021-05-23 16:14:03 +02:00
|
|
|
// code that runs for all markup content
|
2024-11-11 12:13:57 +01:00
|
|
|
export function initMarkupContent(): void {
|
2025-03-04 03:49:15 +08:00
|
|
|
registerGlobalSelectorFunc('.markup', (el: HTMLElement) => {
|
|
|
|
initMarkupCodeCopy(el);
|
|
|
|
initMarkupTasklist(el);
|
|
|
|
initMarkupCodeMermaid(el);
|
|
|
|
initMarkupCodeMath(el);
|
|
|
|
initMarkupRenderAsciicast(el);
|
|
|
|
});
|
2021-05-23 16:14:03 +02:00
|
|
|
}
|