mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
feat(export/md): remove trilium language tag for code blocks
This commit is contained in:
@@ -41,6 +41,10 @@ function toMarkdown(content: string) {
|
||||
}
|
||||
|
||||
function rewriteLanguageTag(source: string) {
|
||||
if (source === "text-x-trilium-auto") {
|
||||
return "";
|
||||
}
|
||||
|
||||
return source
|
||||
.split("-")
|
||||
.at(-1);
|
||||
|
||||
Reference in New Issue
Block a user