mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 21:13:10 +02:00
improve html to MFM
This commit is contained in:
parent
c0fbcee38a
commit
a4283c415a
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…
Reference in a new issue