mirror of
https://github.com/zadam/trilium.git
synced 2024-09-21 08:06:03 +08: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…
Reference in a new issue