Skip to content

Commit 985d24b

Browse files
committed
add quote test
1 parent a4a0240 commit 985d24b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/parser.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,20 @@ describe('FullParser', () => {
129129
];
130130
assert.deepStrictEqual(mfm.parse(input), output);
131131
});
132+
it('引用ブロックの後ろの空行は無視される', () => {
133+
const input = `
134+
> foo
135+
> bar
136+
137+
hoge`;
138+
const output = [
139+
QUOTE([
140+
TEXT('foo\nbar')
141+
]),
142+
TEXT('hoge')
143+
];
144+
assert.deepStrictEqual(mfm.parse(input), output);
145+
});
132146
});
133147

134148
describe('search', () => {

0 commit comments

Comments
 (0)