merge: Make some Headers bold when doing HTML to MFM (!540)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/540

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Tess K <me@thvxl.se>
This commit is contained in:
dakkar 2024-06-09 08:49:53 +00:00
commit c8c77fab6d

View file

@ -129,9 +129,18 @@ export class MfmService {
case 'h1':
{
text += '【';
text += '**【';
appendChildren(node.childNodes);
text += '】\n';
text += '】**\n';
break;
}
case 'h2':
case 'h3':
{
text += '**';
appendChildren(node.childNodes);
text += '**\n';
break;
}
@ -200,8 +209,6 @@ export class MfmService {
}
case 'p':
case 'h2':
case 'h3':
case 'h4':
case 'h5':
case 'h6':