Enhance: 連合向けのノート配信を軽量化 (#13192)

* AP HTML表現をシンプルに

* a

* CHANGELOG

* リンク
This commit is contained in:
MeiMei 2024-02-07 19:57:59 +09:00 committed by GitHub
parent c81b61eb2e
commit e89d760240
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 81 additions and 16 deletions

View file

@ -33,6 +33,12 @@ describe('MfmService', () => {
const output = '<p><span>foo<br>bar<br>baz</span></p>';
assert.equal(mfmService.toHtml(mfm.parse(input)), output);
});
test('Do not generate unnecessary span', () => {
const input = 'foo $[tada bar]';
const output = '<p>foo <i>bar</i></p>';
assert.equal(mfmService.toHtml(mfm.parse(input)), output);
});
});
describe('fromHtml', () => {