mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-08 13:04:34 +00:00
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1116 Closes #982 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
commit
93885530c8
1 changed files with 9 additions and 3 deletions
|
@ -75,9 +75,8 @@ export class MfmService {
|
|||
switch (node.tagName) {
|
||||
case 'br': {
|
||||
text += '\n';
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
case 'a': {
|
||||
const txt = getText(node);
|
||||
const rel = node.attribs.rel;
|
||||
|
@ -123,9 +122,16 @@ export class MfmService {
|
|||
|
||||
text += generateLink();
|
||||
}
|
||||
break;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Don't produce invalid empty MFM
|
||||
if (node.childNodes.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (node.tagName) {
|
||||
case 'h1': {
|
||||
text += '**【';
|
||||
appendChildren(node.childNodes);
|
||||
|
|
Loading…
Add table
Reference in a new issue