[MFM] Fix title syntax parsing

This commit is contained in:
syuilo 2018-11-03 15:28:00 +09:00
parent afc9caf7bf
commit daba7fe87c
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 7 additions and 2 deletions

View file

@ -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]);
});
});