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
|
|
|
};
|