コミットを比較

..

3 コミット

作成者 SHA1 メッセージ 日付
みてるぞ 4befb103bc Merge branch '#89' 2025-08-03 19:08:42 +09:00
みてるぞ a042a24647 #89 2025-08-03 16:25:22 +09:00
みてるぞ 73ed1e2b2a #89 2025-08-03 16:01:08 +09:00
+5 -1
ファイルの表示
@@ -52,6 +52,10 @@ export default ({ title, body }: Props) => {
}) () }) ()
}, []) }, [])
useEffect (() => {
setRealBody ('')
}, [body])
useEffect (() => { useEffect (() => {
if (!(body)) if (!(body))
return return
@@ -90,7 +94,7 @@ export default ({ title, body }: Props) => {
acc.slice (0, start) acc.slice (0, start)
+ `[${ name }](/wiki/${ encodeURIComponent (name) })` + `[${ name }](/wiki/${ encodeURIComponent (name) })`
+ acc.slice (end)), body)) + acc.slice (end)), body))
}, [pageNames]) }, [body, pageNames])
return ( return (
<ReactMarkdown components={mdComponents}> <ReactMarkdown components={mdComponents}>