diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-01-20 18:06:04 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-01-20 18:06:04 +0900 |
| commit | 1df9c1005f6be20e03a55e3ba203e5cdc1fa9eba (patch) | |
| tree | c4be1eef6db37f4b01e68414aa5a2159b2732180 /test | |
| parent | Add double underscore syntax for bold markdown (#3733) (diff) | |
| download | misskey-1df9c1005f6be20e03a55e3ba203e5cdc1fa9eba.tar.gz misskey-1df9c1005f6be20e03a55e3ba203e5cdc1fa9eba.tar.bz2 misskey-1df9c1005f6be20e03a55e3ba203e5cdc1fa9eba.zip | |
[MFM] __ 構文はアルファベットのみに
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 bacce017c2..54096e6bb0 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -187,6 +187,13 @@ describe('MFM', () => { ]); }); + it('with underscores (ensure it allows alphabet only)', () => { + const tokens = analyze('(=^・__________・^=)'); + assert.deepStrictEqual(tokens, [ + text('(=^・__________・^=)') + ]); + }); + it('mixed syntax', () => { const tokens = analyze('**foo__'); assert.deepStrictEqual(tokens, [ |