mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
improve html to MFM
This commit is contained in:
parent
8ec8d89e0a
commit
d6bad7cb30
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,9 @@ export default function(html: string): string {
|
|||
text += txt;
|
||||
break;
|
||||
}
|
||||
// メンション以外
|
||||
} else {
|
||||
text += `[${txt}](${node.attrs.find((x: any) => x.name == 'href').value})`
|
||||
}
|
||||
|
||||
if (node.childNodes) {
|
||||
|
|
Loading…
Add table
Reference in a new issue