Add new MFM syntax
This commit is contained in:
parent
f762cf2770
commit
cd28504dd8
5 changed files with 50 additions and 2 deletions
|
@ -39,6 +39,14 @@ describe('Text', () => {
|
|||
], tokens);
|
||||
});
|
||||
|
||||
it('motion', () => {
|
||||
const tokens = analyze('(((Strawberry))) Pasta');
|
||||
assert.deepEqual([
|
||||
{ type: 'motion', content: '***Strawberry***', motion: 'Strawberry' },
|
||||
{ type: 'text', content: ' Pasta' }
|
||||
], tokens);
|
||||
});
|
||||
|
||||
it('mention', () => {
|
||||
const tokens = analyze('@himawari お腹ペコい');
|
||||
assert.deepEqual([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue