Skip to content

Commit

Permalink
use fenced code block style for markdown export, closes #2963
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Jul 6, 2022
1 parent ef49d20 commit 02affec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/export/md.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 02affec

Please sign in to comment.