From 88a7414625671ce0b98d1f186b18ea8377659844 Mon Sep 17 00:00:00 2001 From: Kuroki_Tsuki Date: Fri, 21 Jun 2024 19:58:47 +0800 Subject: [PATCH] feat: copy button for code blocks (#67) * Add code copy * fix: safari copyButton style * fix: addPreCopyButton up time * modify: CopyButton style * fix: Duplicate rendering issue with copy button --- src/components/misc/Markdown.astro | 52 ++++++++++++++++++++++++++++++ src/i18n/i18nKey.ts | 3 ++ src/i18n/languages/en.ts | 3 ++ src/i18n/languages/ja.ts | 3 ++ src/i18n/languages/zh_CN.ts | 3 ++ src/i18n/languages/zh_TW.ts | 3 ++ 6 files changed, 67 insertions(+) diff --git a/src/components/misc/Markdown.astro b/src/components/misc/Markdown.astro index 7552049..96df802 100644 --- a/src/components/misc/Markdown.astro +++ b/src/components/misc/Markdown.astro @@ -13,6 +13,58 @@ const className = Astro.props.class; + + +