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-01-13 21:54:16 +00:00
|
|
|
$(document).on('ready load', function() {
|
2016-12-09 00:15:08 +00:00
|
|
|
return $('body').renderGFM();
|
|
|
|
});
|
2017-02-10 06:50:50 +00:00
|
|
|
}).call(window);
|