From de65c3c3f6e0714d4782ff7cf77050d7e13fbf3c Mon Sep 17 00:00:00 2001 From: Freeplay Date: Mon, 5 Jun 2023 11:55:21 -0400 Subject: [PATCH] =?UTF-8?q?the=20better=20way=20of=20doing=20advanced=20MF?= =?UTF-8?q?M=E2=84=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/src/components/MkNotePreview.vue | 2 +- .../src/components/MkSubNoteContent.vue | 5 +- .../global/MkMisskeyFlavoredMarkdown.vue | 12 ++-- packages/client/src/pages/mfm-cheat-sheet.vue | 72 +++++++++---------- 4 files changed, 46 insertions(+), 45 deletions(-) diff --git a/packages/client/src/components/MkNotePreview.vue b/packages/client/src/components/MkNotePreview.vue index b8cc70ec9..6fdd79dc6 100644 --- a/packages/client/src/components/MkNotePreview.vue +++ b/packages/client/src/components/MkNotePreview.vue @@ -6,7 +6,7 @@
-
+
diff --git a/packages/client/src/components/MkSubNoteContent.vue b/packages/client/src/components/MkSubNoteContent.vue index 5dc443c49..0f2941e08 100644 --- a/packages/client/src/components/MkSubNoteContent.vue +++ b/packages/client/src/components/MkSubNoteContent.vue @@ -42,8 +42,7 @@ isLong, manyImages: note.files.length > 4, showContent: note.cw && !showContent, - animatedMfm: !disableMfm, - advancedMfm, + animatedMfm: !disableMfm }" > 0); let disableMfm = $ref(defaultStore.state.animatedMfm); -const advancedMfm = defaultStore.state.advancedMfm; - async function toggleMfm() { if (disableMfm) { if (!defaultStore.state.animatedMfmWarnShown) { diff --git a/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue b/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue index ef09e8606..5c366418d 100644 --- a/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue +++ b/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue @@ -7,13 +7,17 @@ :customEmojis="customEmojis" :isNote="isNote" class="mfm-object" - :class="{ nowrap }" + :class="{ + nowrap, + advancedMfm: defaultStore.state.advancedMfm + }" />