diff options
| author | marihachi <marihachi0620@gmail.com> | 2021-11-01 23:47:13 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-01 23:47:13 +0900 |
| commit | 1c38c7010d9a9604df979faa867cd8f9e7d825c9 (patch) | |
| tree | d4083b7255f69eaaf0eb5cedcf3591a344fd0762 /src/client | |
| parent | add some locales (diff) | |
| download | misskey-1c38c7010d9a9604df979faa867cd8f9e7d825c9.tar.gz misskey-1c38c7010d9a9604df979faa867cd8f9e7d825c9.tar.bz2 misskey-1c38c7010d9a9604df979faa867cd8f9e7d825c9.zip | |
refactor: Introduce list of MFM Functions (#7882)
* introduce list of MFM Functions
* add note
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/components/mfm.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/components/mfm.ts b/src/client/components/mfm.ts index f3411cadc3..ad6e711f6f 100644 --- a/src/client/components/mfm.ts +++ b/src/client/components/mfm.ts @@ -11,6 +11,7 @@ import MkGoogle from '@client/components/google.vue'; import MkSparkle from '@client/components/sparkle.vue'; import MkA from '@client/components/global/a.vue'; import { host } from '@client/config'; +import { fnNameList } from '@/mfm/fn-name-list'; export default defineComponent({ props: { @@ -46,7 +47,7 @@ export default defineComponent({ render() { if (this.text == null || this.text == '') return; - const ast = (this.plain ? mfm.parsePlain : mfm.parse)(this.text); + const ast = (this.plain ? mfm.parsePlain : mfm.parse)(this.text, { fnNameList }); const validTime = (t: string | null | undefined) => { if (t == null) return null; |