formations/javascript/cadoles-remark-macros.js

11 lines
220 B
JavaScript

(function() {
remark.macros.include = function() {
var req = new XMLHttpRequest();
req.open('GET', this, false);
req.send();
return remark.convert(req.responseText.replace(/\r\n/g, '\n'));
};
}());