SiteWebAstrolabe/src/filters/markdown-filter.js
2020-06-19 23:47:44 +02:00

10 lines
177 B
JavaScript

const markdownIt = require('markdown-it')({
html: true,
breaks: true,
linkify: true
});
module.exports = function markdown(value) {
return markdownIt.render(value);
};