Skip to content
Snippets Groups Projects
Unverified Commit b134467b authored by syuilo's avatar syuilo
Browse files

Add some MFM tests

parent 49d57ce0
No related branches found
No related tags found
No related merge requests found
......@@ -1173,6 +1173,24 @@ describe('MFM', () => {
text('foo_bar_baz'),
]);
});
it('require spaces', () => {
const tokens = parse('湊おじたん@4日目_L38b #pixiv https://www.pixiv.net/member_illust.php');
assert.deepStrictEqual(tokens, [
text('湊おじたん@4日目_L38b #pixiv https://www.pixiv.net/member_illust.php'),
]);
});
it('newline sandwich', () => {
const tokens = parse('foo\n_bar_\nbaz');
assert.deepStrictEqual(tokens, [
text('foo\n'),
tree('italic', [
text('bar')
], {}),
text('baz'),
]);
});
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment