SiteWebAstrolabe/src/filters/markdown-filter.js

10 lines
177 B
JavaScript
Raw Normal View History

2020-06-19 23:47:44 +02:00
const markdownIt = require('markdown-it')({
html: true,
breaks: true,
linkify: true
});
module.exports = function markdown(value) {
return markdownIt.render(value);
};