force advanced MFM in posting form preview

This commit is contained in:
Freeplay 2023-06-10 19:34:20 -04:00
parent f5945269bf
commit fbc67ca745
2 changed files with 8 additions and 2 deletions

View File

@ -7,7 +7,12 @@
</div> </div>
<div class="body"> <div class="body">
<div class="content"> <div class="content">
<Mfm :text="preprocess(text).trim()" :author="$i" :i="$i" /> <Mfm
:text="preprocess(text).trim()"
:author="$i"
:i="$i"
advancedMfm
/>
</div> </div>
</div> </div>
</div> </div>

View File

@ -9,7 +9,7 @@
class="mfm-object" class="mfm-object"
:class="{ :class="{
nowrap, nowrap,
advancedMfm: defaultStore.state.advancedMfm, advancedMfm: defaultStore.state.advancedMfm || advancedMfm,
}" }"
/> />
</template> </template>
@ -27,6 +27,7 @@ const props = withDefaults(
author?: any; author?: any;
customEmojis?: any; customEmojis?: any;
isNote?: boolean; isNote?: boolean;
advancedMfm: boolean;
}>(), }>(),
{ {
plain: false, plain: false,