diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-01-27 13:40:38 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-01-27 13:40:38 +0900 |
| commit | 085325e65fa47c9dd9f2d261faeb7775f9f2486f (patch) | |
| tree | d5b3706d44532192b2b8e4747f8552326f766835 /test | |
| parent | Refactoring (diff) | |
| download | sharkey-085325e65fa47c9dd9f2d261faeb7775f9f2486f.tar.gz sharkey-085325e65fa47c9dd9f2d261faeb7775f9f2486f.tar.bz2 sharkey-085325e65fa47c9dd9f2d261faeb7775f9f2486f.zip | |
[MFM] Improve title syntax detection
Diffstat (limited to 'test')
| -rw-r--r-- | test/mfm.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts index a4b4a13973..2124f592fe 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -894,6 +894,13 @@ describe('MFM', () => { text('after') ]); }); + + it('ignore multiple title blocks', () => { + const tokens = analyze('【foo】bar【baz】'); + assert.deepStrictEqual(tokens, [ + text('【foo】bar【baz】') + ]); + }); }); describe('center', () => { |