[MFM] Implement strike syntax

Resolve #3485
This commit is contained in:
syuilo 2018-12-04 01:28:21 +09:00
parent ce3f735654
commit 6e343d50f1
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
4 changed files with 40 additions and 0 deletions

View file

@ -702,6 +702,17 @@ describe('Text', () => {
], tokens);
});
});
describe('strike', () => {
it('simple', () => {
const tokens = analyze('~~foo~~');
assert.deepEqual([
nodeWithChildren('strike', [
text('foo')
]),
], tokens);
});
});
});
describe('toHtml', () => {