chore: default export preprocess function
This commit is contained in:
parent
6d899518b3
commit
266078b549
@ -20,8 +20,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import {} from "vue";
|
import preprocess from "@/scripts/preprocess";
|
||||||
import { preprocess } from "@/scripts/preprocess";
|
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
text: string;
|
text: string;
|
||||||
|
@ -274,7 +274,7 @@ import {
|
|||||||
import { uploadFile } from "@/scripts/upload";
|
import { uploadFile } from "@/scripts/upload";
|
||||||
import { deepClone } from "@/scripts/clone";
|
import { deepClone } from "@/scripts/clone";
|
||||||
import XCheatSheet from "@/components/MkCheatSheetDialog.vue";
|
import XCheatSheet from "@/components/MkCheatSheetDialog.vue";
|
||||||
import { preprocess } from "@/scripts/preprocess";
|
import preprocess from "@/scripts/preprocess";
|
||||||
import { vibrate } from "@/scripts/vibrate";
|
import { vibrate } from "@/scripts/vibrate";
|
||||||
|
|
||||||
const modal = inject("modal");
|
const modal = inject("modal");
|
||||||
|
@ -2,7 +2,7 @@ import * as mfm from "mfm-js";
|
|||||||
import { defaultStore } from "@/store";
|
import { defaultStore } from "@/store";
|
||||||
import { expandKaTeXMacro } from "@/scripts/katex-macro";
|
import { expandKaTeXMacro } from "@/scripts/katex-macro";
|
||||||
|
|
||||||
export function preprocess(text: string): string {
|
export default function preprocess(text: string): string {
|
||||||
if (defaultStore.state.enableCustomKaTeXMacro) {
|
if (defaultStore.state.enableCustomKaTeXMacro) {
|
||||||
const parsedKaTeXMacro =
|
const parsedKaTeXMacro =
|
||||||
localStorage.getItem("customKaTeXMacroParsed") ?? "{}";
|
localStorage.getItem("customKaTeXMacroParsed") ?? "{}";
|
||||||
|
Loading…
Reference in New Issue
Block a user