[MFM] Add center syntax

Resolve #1775
This commit is contained in:
syuilo 2018-11-25 13:36:40 +09:00
parent 2c5162671c
commit f3155ea180
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
5 changed files with 44 additions and 1 deletions

View file

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