[MFM] Add italic syntax

Resolve #3486
This commit is contained in:
syuilo 2018-12-05 17:39:26 +09:00
parent 20c0690352
commit ed4860dfd9
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
4 changed files with 50 additions and 0 deletions

View file

@ -713,6 +713,17 @@ describe('Text', () => {
], tokens);
});
});
describe('italic', () => {
it('simple', () => {
const tokens = analyze('<i>foo</i>');
assert.deepEqual([
nodeWithChildren('italic', [
text('foo')
]),
], tokens);
});
});
});
describe('toHtml', () => {