ソースを参照

fix: page broke down while rendering node contained img and other elements (#14467)

tags/1.0.0
NFish 8ヶ月前
コミット
ddf9eb1f9a
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更3行の追加1行の削除
  1. 3
    1
      web/app/components/base/markdown.tsx

+ 3
- 1
web/app/components/base/markdown.tsx ファイルの表示

@@ -211,7 +211,9 @@ const Paragraph = (paragraph: any) => {
return (
<>
<ImageGallery srcs={[children_node[0].properties.src]} />
<p>{paragraph.children.slice(1)}</p>
{
Array.isArray(paragraph.children) ? <p>{paragraph.children.slice(1)}</p> : null
}
</>
)
}

読み込み中…
キャンセル
保存