From a4283c415aed7187456867ed5cd3d8168c7e8285 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 18 Aug 2018 12:11:14 +0900 Subject: [PATCH] improve html to MFM --- src/mfm/html-to-mfm.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mfm/html-to-mfm.ts b/src/mfm/html-to-mfm.ts index daa228ec51..e8b1564958 100644 --- a/src/mfm/html-to-mfm.ts +++ b/src/mfm/html-to-mfm.ts @@ -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) {