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
|
@ -129,9 +129,18 @@ export class MfmService {
|
||||||
|
|
||||||
case 'h1':
|
case 'h1':
|
||||||
{
|
{
|
||||||
text += '【';
|
text += '**【';
|
||||||
appendChildren(node.childNodes);
|
appendChildren(node.childNodes);
|
||||||
text += '】\n';
|
text += '】**\n';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
case 'h2':
|
||||||
|
case 'h3':
|
||||||
|
{
|
||||||
|
text += '**';
|
||||||
|
appendChildren(node.childNodes);
|
||||||
|
text += '**\n';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,8 +209,6 @@ export class MfmService {
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
case 'h2':
|
|
||||||
case 'h3':
|
|
||||||
case 'h4':
|
case 'h4':
|
||||||
case 'h5':
|
case 'h5':
|
||||||
case 'h6':
|
case 'h6':
|
||||||
|
|
Loading…
Reference in New Issue