Add MFM test
This commit is contained in:
parent
0e49c11a4c
commit
995cf503eb
|
@ -449,6 +449,15 @@ describe('Text', () => {
|
||||||
], tokens);
|
], tokens);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('simple (with silent flag)', () => {
|
||||||
|
const tokens = analyze('?[foo](https://example.com)');
|
||||||
|
assert.deepEqual([
|
||||||
|
nodeWithChildren('link', [
|
||||||
|
text('foo')
|
||||||
|
], { url: 'https://example.com', silent: true })
|
||||||
|
], tokens);
|
||||||
|
});
|
||||||
|
|
||||||
it('in text', () => {
|
it('in text', () => {
|
||||||
const tokens = analyze('before[foo](https://example.com)after');
|
const tokens = analyze('before[foo](https://example.com)after');
|
||||||
assert.deepEqual([
|
assert.deepEqual([
|
||||||
|
|
Loading…
Reference in a new issue