mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-21 21:55:09 +00:00
add quote test
This commit is contained in:
parent
a4a0240d83
commit
985d24b4bd
1 changed files with 14 additions and 0 deletions
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in a new issue