From 446f0c2ea5cc9a9f7f48a75935bce550bd0b3095 Mon Sep 17 00:00:00 2001 From: Yuriha Date: Fri, 16 Jun 2023 12:36:30 +0000 Subject: [PATCH] fix --- .../src/components/global/MkMisskeyFlavoredMarkdown.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts b/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts index 475412469315..18621bb6c14b 100644 --- a/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts +++ b/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts @@ -88,8 +88,8 @@ export default function(props: { switch (token.props.name) { case 'ruby': { let rb, rt, tokens; - if (token.children.length == 1 && token.children[0].props.type == 'text') { - tokens = token.prope.text.split(" "); + if (token.children.length == 1 && token.children[0].type == 'text') { + tokens = token.props.text.trim().split(" "); rb = [tokens[0]]; rt = [tokens.slice(1).join(' ')]; } else if (token.children.length > 2) {