mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 21:45:11 +00:00
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:
commit
c8c77fab6d
1 changed files with 11 additions and 4 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue