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