diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-03 15:28:00 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-03 15:28:00 +0900 |
| commit | daba7fe87c0fe8211a81065a5e300fdb7a36aef0 (patch) | |
| tree | e1711390e71e42b7cdba5e54c7f06a6868438a2a /test | |
| parent | Improve performance (diff) | |
| download | misskey-daba7fe87c0fe8211a81065a5e300fdb7a36aef0.tar.gz misskey-daba7fe87c0fe8211a81065a5e300fdb7a36aef0.tar.bz2 misskey-daba7fe87c0fe8211a81065a5e300fdb7a36aef0.zip | |
[MFM] Fix title syntax parsing
Diffstat (limited to 'test')
| -rw-r--r-- | test/mfm.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts index 0ef2c91bcb..36232468a3 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -230,6 +230,11 @@ describe('Text', () => { assert.deepEqual( { type: 'title', content: '[yee]\n', title: 'yee'} , tokens2[0]); + + const tokens3 = analyze('a [a]\nb [b]\nc [c]'); + assert.deepEqual( + { type: 'text', content: 'a [a]\nb [b]\nc [c]' } + , tokens2[0]); }); }); |