17 lines
502 B
JavaScript
17 lines
502 B
JavaScript
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-else-return, prefer-arrow-callback, max-len */
|
|
|
|
// 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();
|
|
return this;
|
|
};
|
|
|
|
$(document).on('ready load', function() {
|
|
return $('body').renderGFM();
|
|
});
|
|
}).call(window);
|