From abb93f1d79bcbed297c20a0f3d9ef425db9aed5f Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 10 Oct 2024 13:04:51 +0100 Subject: [PATCH] use sfm for embeds --- packages/frontend-embed/package.json | 4 ++-- packages/frontend-embed/src/components/EmMfm.ts | 2 +- packages/frontend-embed/src/components/EmNote.vue | 2 +- .../src/components/EmNoteDetailed.vue | 2 +- pnpm-lock.yaml | 13 +++---------- 5 files changed, 8 insertions(+), 15 deletions(-) diff --git a/packages/frontend-embed/package.json b/packages/frontend-embed/package.json index 9e315996e5..7c515787a9 100644 --- a/packages/frontend-embed/package.json +++ b/packages/frontend-embed/package.json @@ -12,17 +12,17 @@ }, "dependencies": { "@discordapp/twemoji": "15.1.0", + "@phosphor-icons/web": "^2.0.3", "@rollup/plugin-json": "6.1.0", "@rollup/plugin-replace": "5.0.7", "@rollup/pluginutils": "5.1.2", - "@phosphor-icons/web": "^2.0.3", + "@transfem-org/sfm-js": "0.24.5", "@twemoji/parser": "15.1.1", "@vitejs/plugin-vue": "5.1.4", "@vue/compiler-sfc": "3.5.10", "astring": "1.9.0", "buraha": "0.0.1", "estree-walker": "3.0.3", - "mfm-js": "0.24.0", "misskey-js": "workspace:*", "frontend-shared": "workspace:*", "punycode": "2.3.1", diff --git a/packages/frontend-embed/src/components/EmMfm.ts b/packages/frontend-embed/src/components/EmMfm.ts index 2549d20a6e..15a28b0829 100644 --- a/packages/frontend-embed/src/components/EmMfm.ts +++ b/packages/frontend-embed/src/components/EmMfm.ts @@ -4,7 +4,7 @@ */ import { VNode, h, SetupContext, provide } from 'vue'; -import * as mfm from 'mfm-js'; +import * as mfm from '@transfem-org/sfm-js'; import * as Misskey from 'misskey-js'; import EmUrl from '@/components/EmUrl.vue'; import EmTime from '@/components/EmTime.vue'; diff --git a/packages/frontend-embed/src/components/EmNote.vue b/packages/frontend-embed/src/components/EmNote.vue index f7899bfb03..847b6e7a21 100644 --- a/packages/frontend-embed/src/components/EmNote.vue +++ b/packages/frontend-embed/src/components/EmNote.vue @@ -106,7 +106,7 @@ SPDX-License-Identifier: AGPL-3.0-only