upd: bold some Header tags

This commit is contained in:
Marie 2024-06-08 18:00:29 +00:00
parent 1063102186
commit 0c3690a8ba

View file

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