From c53a6cec760346236de38807b2edef3679236f64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20S=2E=20=C5=81ukasiewicz?= Date: Sat, 24 Feb 2024 15:52:22 +0100 Subject: [PATCH] Exclude copy code button from more code widgets (#748) --- web/cm_plugins/code_copy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/cm_plugins/code_copy.ts b/web/cm_plugins/code_copy.ts index 218c4403a..d1bcb7c5b 100644 --- a/web/cm_plugins/code_copy.ts +++ b/web/cm_plugins/code_copy.ts @@ -13,7 +13,7 @@ import { const ICON_SVG = ''; -const EXCLUDE_LANGUAGES = ["template", "query", "embed"]; +const EXCLUDE_LANGUAGES = ["template", "include", "query", "toc", "embed"]; class CodeCopyWidget extends WidgetType { constructor(readonly value: string, readonly client: Client) {