[MFM] Add spin syntax

Resolve #4003
This commit is contained in:
syuilo 2019-01-27 16:18:04 +09:00
parent d906d90010
commit e5d9381503
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
6 changed files with 47 additions and 0 deletions

View file

@ -244,6 +244,15 @@ describe('MFM', () => {
]);
});
it('spin', () => {
const tokens = analyze('<spin>:foo:</spin>');
assert.deepStrictEqual(tokens, [
tree('spin', [
leaf('emoji', { name: 'foo' })
], {}),
]);
});
describe('motion', () => {
it('by triple brackets', () => {
const tokens = analyze('(((foo)))');