1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-30 15:58:19 +09:00

improve html to MFM

This commit is contained in:
tamaina 2018-08-18 12:11:14 +09:00 committed by Aya Morisawa
parent c0fbcee38a
commit a4283c415a

View File

@ -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) {