use fenced code block style for markdown export, closes #2963

This commit is contained in:
zadam 2022-07-06 21:31:11 +02:00
parent ef49d20470
commit 02affece91

View file

@ -7,7 +7,7 @@ let instance = null;
function toMarkdown(content) {
if (instance === null) {
instance = new TurndownService();
instance = new TurndownService({ codeBlockStyle: 'fenced' });
instance.use(turndownPluginGfm.gfm);
}