From fbc67ca745d022854b1b9d527ff2d6329924a3f5 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sat, 10 Jun 2023 19:34:20 -0400 Subject: [PATCH] force advanced MFM in posting form preview --- packages/client/src/components/MkNotePreview.vue | 7 ++++++- .../src/components/global/MkMisskeyFlavoredMarkdown.vue | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/MkNotePreview.vue b/packages/client/src/components/MkNotePreview.vue index 6fdd79dc6..d184292dc 100644 --- a/packages/client/src/components/MkNotePreview.vue +++ b/packages/client/src/components/MkNotePreview.vue @@ -7,7 +7,12 @@
- +
diff --git a/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue b/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue index 0ce5647fc..4ecb0580f 100644 --- a/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue +++ b/packages/client/src/components/global/MkMisskeyFlavoredMarkdown.vue @@ -9,7 +9,7 @@ class="mfm-object" :class="{ nowrap, - advancedMfm: defaultStore.state.advancedMfm, + advancedMfm: defaultStore.state.advancedMfm || advancedMfm, }" /> @@ -27,6 +27,7 @@ const props = withDefaults( author?: any; customEmojis?: any; isNote?: boolean; + advancedMfm: boolean; }>(), { plain: false,