2017-03-17 17:21:25 +00:00
|
|
|
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-else-return, prefer-arrow-callback, max-len */
|
|
|
|
|
2016-12-09 00:15:08 +00:00
|
|
|
// 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();
|
2017-04-07 16:12:43 +00:00
|
|
|
return this;
|
2016-12-09 00:15:08 +00:00
|
|
|
};
|
|
|
|
|
2017-08-08 13:25:00 +00:00
|
|
|
$(() => $('body').renderGFM());
|
2017-02-10 06:50:50 +00:00
|
|
|
}).call(window);
|