merge: Change profile field value to not include <p> (!1141)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1141 Closes #1123 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Hazelnoot <acomputerdog@gmail.com>
This commit is contained in:
commit
88231c61af
3 changed files with 15 additions and 3 deletions
|
|
@ -63,6 +63,12 @@ describe('MfmService', () => {
|
|||
const output = '<p><ruby><span><i>some</i> text</span><rp>(</rp><rt>ignore me</rt><rp>)</rp></ruby></p>';
|
||||
assert.equal(mfmService.toHtml(mfm.parse(input)), output);
|
||||
});
|
||||
|
||||
test('inline', () => {
|
||||
const input = 'https://example.com';
|
||||
const output = '<a href="https://example.com">https://example.com</a>';
|
||||
assert.equal(mfmService.toHtml(mfm.parse(input), [], [], true), output);
|
||||
});
|
||||
});
|
||||
|
||||
describe('toMastoApiHtml', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue