refactor: Introduce list of MFM Functions (#7882)
* introduce list of MFM Functions * add note
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user