mirror of https://github.com/go-gitea/gitea.git
18 lines
630 B
TypeScript
18 lines
630 B
TypeScript
import {initMarkupCodeMermaid} from './mermaid.ts';
|
|
import {initMarkupCodeMath} from './math.ts';
|
|
import {initMarkupCodeCopy} from './codecopy.ts';
|
|
import {initMarkupRenderAsciicast} from './asciicast.ts';
|
|
import {initMarkupTasklist} from './tasklist.ts';
|
|
import {registerGlobalSelectorFunc} from '../modules/observer.ts';
|
|
|
|
// code that runs for all markup content
|
|
export function initMarkupContent(): void {
|
|
registerGlobalSelectorFunc('.markup', (el: HTMLElement) => {
|
|
initMarkupCodeCopy(el);
|
|
initMarkupTasklist(el);
|
|
initMarkupCodeMermaid(el);
|
|
initMarkupCodeMath(el);
|
|
initMarkupRenderAsciicast(el);
|
|
});
|
|
}
|