Web/node/showdown.js
Ell 8a14c03989
All checks were successful
Web/pipeline/head This commit looks good
some code style improvements
2021-03-19 12:02:31 +01:00

10 lines
No EOL
318 B
JavaScript

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"]
});
};