code.gitea.io/gitea@v1.21.7/web_src/js/markup/content.js (about)

     1  import {renderMermaid} from './mermaid.js';
     2  import {renderMath} from './math.js';
     3  import {renderCodeCopy} from './codecopy.js';
     4  import {renderAsciicast} from './asciicast.js';
     5  import {initMarkupTasklist} from './tasklist.js';
     6  
     7  // code that runs for all markup content
     8  export function initMarkupContent() {
     9    renderMermaid();
    10    renderMath();
    11    renderCodeCopy();
    12    renderAsciicast();
    13  }
    14  
    15  // code that only runs for comments
    16  export function initCommentContent() {
    17    initMarkupTasklist();
    18  }