diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-01-30 15:27:54 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2019-01-30 15:27:54 +0900 |
| commit | e3b1d00e4ce9a26c1d7a2e6fc93b931911b9820e (patch) | |
| tree | 4368090330fa1bd6d4922b850483320f02cb81ed /src/client/app | |
| parent | Merge plainParser into mfm (diff) | |
| download | misskey-e3b1d00e4ce9a26c1d7a2e6fc93b931911b9820e.tar.gz misskey-e3b1d00e4ce9a26c1d7a2e6fc93b931911b9820e.tar.bz2 misskey-e3b1d00e4ce9a26c1d7a2e6fc93b931911b9820e.zip | |
Extract parsePlain function
Diffstat (limited to 'src/client/app')
| -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; |