upd: seperate H2/H3 into own case

This commit is contained in:
Marie 2024-06-08 18:53:42 +00:00
parent 0c3690a8ba
commit 4a9260a432
1 changed files with 9 additions and 2 deletions

View File

@ -135,10 +135,17 @@ export class MfmService {
break; break;
} }
case 'b':
case 'strong':
case 'h2': case 'h2':
case 'h3': case 'h3':
{
text += '**';
appendChildren(node.childNodes);
text += '**\n';
break;
}
case 'b':
case 'strong':
{ {
text += '**'; text += '**';
appendChildren(node.childNodes); appendChildren(node.childNodes);