blob: cb935a6bea85805700756d931892496c18c5a39f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import './render_math';
import './render_mermaid';
// Render Gitlab flavoured Markdown
//
// Delegates to syntax highlight and render math & mermaid diagrams.
//
$.fn.renderGFM = function renderGFM() {
this.find('.js-syntax-highlight').syntaxHighlight();
this.find('.js-render-math').renderMath();
this.find('.js-render-mermaid').renderMermaid();
return this;
};
$(() => $('body').renderGFM());
|