diff --git a/apps/client/src/services/syntax_highlight.ts b/apps/client/src/services/syntax_highlight.ts index 0cb7cbf2d..0e4a2f031 100644 --- a/apps/client/src/services/syntax_highlight.ts +++ b/apps/client/src/services/syntax_highlight.ts @@ -1,6 +1,7 @@ import { ensureMimeTypes, highlight, highlightAuto, loadTheme, Themes } from "@triliumnext/highlightjs"; import mime_types from "./mime_types.js"; import options from "./options.js"; +import toast from "./toast.js"; let highlightingLoaded = false; @@ -33,7 +34,17 @@ export async function formatCodeBlocks($container: JQuery) { export function applyCopyToClipboardButton($codeBlock: JQuery) { const $copyButton = $("