summaryrefslogtreecommitdiffstats
path: root/web_src/js/markup/content.js
blob: e4ec3d0b4baa6b90f5d72201fe457efce49aa3ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import {renderMermaid} from './mermaid.js';
import {renderMath} from './math.js';
import {renderCodeCopy} from './codecopy.js';
import {renderAsciinemaPlayer} from './asciicast.js';
import {initMarkupTasklist} from './tasklist.js';

// code that runs for all markup content
export function initMarkupContent() {
  renderMermaid();
  renderMath();
  renderCodeCopy();
  renderAsciinemaPlayer();
}

// code that only runs for comments
export function initCommentContent() {
  initMarkupTasklist();
}