Web/node/showdown.js

10 lines
318 B
JavaScript
Raw Normal View History

2019-10-20 15:56:22 +02:00
const showdown = require("showdown");
require("./lib/showdown-prettify");
require("./lib/showdown-footnotes");
module.exports = function (headerLevel) {
return new showdown.Converter({
parseImgDimensions: true,
headerLevelStart: headerLevel,
extensions: ["prettify", "footnotes"]
});
2021-03-19 12:02:31 +01:00
};