From 3dc9ac9d4089bd24186027cf14c2c8005ac324cf Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Fri, 2 Feb 2024 12:08:32 +0900 Subject: [PATCH 1/5] =?UTF-8?q?enhance(frontend):=20shiki=20v1=E3=81=AB?= =?UTF-8?q?=E7=A7=BB=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/package.json | 2 +- .../frontend/src/components/MkCode.core.vue | 21 ++++++------- .../frontend/src/scripts/code-highlighter.ts | 28 +++++++++-------- pnpm-lock.yaml | 30 +++++++------------ scripts/build-assets.mjs | 8 ----- 5 files changed, 37 insertions(+), 52 deletions(-) diff --git a/packages/frontend/package.json b/packages/frontend/package.json index b37c0ecfe4b9..e2cc5ca9f3a9 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -60,7 +60,7 @@ "rollup": "4.9.6", "sanitize-html": "2.11.0", "sass": "1.70.0", - "shiki": "0.14.7", + "shiki": "1.0.0-beta.3", "strict-event-emitter-types": "2.0.0", "textarea-caret": "3.1.0", "three": "0.160.1", diff --git a/packages/frontend/src/components/MkCode.core.vue b/packages/frontend/src/components/MkCode.core.vue index 8fca3bb15f02..c655ff416ef3 100644 --- a/packages/frontend/src/components/MkCode.core.vue +++ b/packages/frontend/src/components/MkCode.core.vue @@ -5,13 +5,13 @@ SPDX-License-Identifier: AGPL-3.0-only -