summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-01-20 18:06:04 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-01-20 18:06:04 +0900
commit1df9c1005f6be20e03a55e3ba203e5cdc1fa9eba (patch)
treec4be1eef6db37f4b01e68414aa5a2159b2732180 /test
parentAdd double underscore syntax for bold markdown (#3733) (diff)
downloadmisskey-1df9c1005f6be20e03a55e3ba203e5cdc1fa9eba.tar.gz
misskey-1df9c1005f6be20e03a55e3ba203e5cdc1fa9eba.tar.bz2
misskey-1df9c1005f6be20e03a55e3ba203e5cdc1fa9eba.zip
[MFM] __ 構文はアルファベットのみに
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts7
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, [