From 985d24b4bd139cb9d358970e04eef8bcfa0e5987 Mon Sep 17 00:00:00 2001 From: marihachi Date: Sat, 12 Jun 2021 12:53:11 +0900 Subject: [PATCH] add quote test --- test/parser.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/parser.ts b/test/parser.ts index 69b5d23..e419d84 100644 --- a/test/parser.ts +++ b/test/parser.ts @@ -129,6 +129,20 @@ describe('FullParser', () => { ]; assert.deepStrictEqual(mfm.parse(input), output); }); + it('引用ブロックの後ろの空行は無視される', () => { + const input = ` +> foo +> bar + +hoge`; + const output = [ + QUOTE([ + TEXT('foo\nbar') + ]), + TEXT('hoge') + ]; + assert.deepStrictEqual(mfm.parse(input), output); + }); }); describe('search', () => {