mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
use fenced code block style for markdown export, closes #2963
This commit is contained in:
parent
ef49d20470
commit
02affece91
@ -7,7 +7,7 @@ let instance = null;
|
|||||||
|
|
||||||
function toMarkdown(content) {
|
function toMarkdown(content) {
|
||||||
if (instance === null) {
|
if (instance === null) {
|
||||||
instance = new TurndownService();
|
instance = new TurndownService({ codeBlockStyle: 'fenced' });
|
||||||
instance.use(turndownPluginGfm.gfm);
|
instance.use(turndownPluginGfm.gfm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user