[MFM] Add <i> syntax
This commit is contained in:
parent
ff4cb3555b
commit
f8ba73bebf
2 changed files with 10 additions and 1 deletions
|
@ -883,6 +883,15 @@ describe('MFM', () => {
|
|||
});
|
||||
|
||||
describe('italic', () => {
|
||||
it('<i>', () => {
|
||||
const tokens = analyze('<i>foo</i>');
|
||||
assert.deepStrictEqual(tokens, [
|
||||
tree('italic', [
|
||||
text('foo')
|
||||
], {}),
|
||||
]);
|
||||
});
|
||||
|
||||
it('underscore', () => {
|
||||
const tokens = analyze('_foo_');
|
||||
assert.deepStrictEqual(tokens, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue