Extract parsePlain function
This commit is contained in:
parent
98795aad9a
commit
e3b1d00e4c
4 changed files with 19 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue