chore: default export preprocess function

This commit is contained in:
naskya 2023-09-24 18:03:36 +09:00
parent 6d899518b3
commit 266078b549
No known key found for this signature in database
GPG Key ID: 164DFF24E2D40139
3 changed files with 3 additions and 4 deletions

View File

@ -20,8 +20,7 @@
</template>
<script lang="ts" setup>
import {} from "vue";
import { preprocess } from "@/scripts/preprocess";
import preprocess from "@/scripts/preprocess";
const props = defineProps<{
text: string;

View File

@ -274,7 +274,7 @@ import {
import { uploadFile } from "@/scripts/upload";
import { deepClone } from "@/scripts/clone";
import XCheatSheet from "@/components/MkCheatSheetDialog.vue";
import { preprocess } from "@/scripts/preprocess";
import preprocess from "@/scripts/preprocess";
import { vibrate } from "@/scripts/vibrate";
const modal = inject("modal");

View File

@ -2,7 +2,7 @@ import * as mfm from "mfm-js";
import { defaultStore } from "@/store";
import { expandKaTeXMacro } from "@/scripts/katex-macro";
export function preprocess(text: string): string {
export default function preprocess(text: string): string {
if (defaultStore.state.enableCustomKaTeXMacro) {
const parsedKaTeXMacro =
localStorage.getItem("customKaTeXMacroParsed") ?? "{}";