BigW Consortium Gitlab

render_gfm.js 452 Bytes
Newer Older
1 2
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-else-return, prefer-arrow-callback, max-len */

3 4 5 6 7 8 9 10
// Render Gitlab flavoured Markdown
//
// Delegates to syntax highlight and render math
//
(function() {
  $.fn.renderGFM = function() {
    this.find('.js-syntax-highlight').syntaxHighlight();
    this.find('.js-render-math').renderMath();
11
    return this;
12 13
  };

14
  $(() => $('body').renderGFM());
15
}).call(window);