diff options
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/common/views/components/mfm.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/common/views/components/mfm.ts b/src/client/app/common/views/components/mfm.ts index 5ae2104915..61eeb4e076 100644 --- a/src/client/app/common/views/components/mfm.ts +++ b/src/client/app/common/views/components/mfm.ts @@ -1,7 +1,7 @@ import Vue, { VNode } from 'vue'; import { length } from 'stringz'; import { MfmForest } from '../../../../../mfm/types'; -import parse from '../../../../../mfm/parse'; +import parse, { parsePlain } from '../../../../../mfm/parse'; import MkUrl from './url.vue'; import MkMention from './mention.vue'; import { concat, sum } from '../../../../../prelude/array'; @@ -46,7 +46,7 @@ export default Vue.component('misskey-flavored-markdown', { render(createElement) { if (this.text == null || this.text == '') return; - const ast = parse(this.text, this.plainText); + const ast = (this.plainText ? parsePlain : parse)(this.text); let bigCount = 0; let motionCount = 0; |