Skip to content

Build your personal knowledge base with Trilium Notes

server: Remove dashes from syntax theme name

Elian Dorane1ae014b743b
diff --git a/src/routes/api/options.ts b/src/routes/api/options.ts
index 5b8f4aea48..459654a291 100644
--- a/src/routes/api/options.ts
+++ b/src/routes/api/options.ts
@@ -150,7 +150,7 @@ function getSyntaxHighlightingThemes() {
return {
val: `default:${nameWithoutExtension}`,
- title: nameWithoutExtension
+ title: nameWithoutExtension.replace(/-/g, " ")
};
});
return allThemes;