This commit is contained in:
@@ -3,6 +3,7 @@ import toCamel from 'camelcase-keys'
|
||||
import { useEffect, useState } from 'react'
|
||||
import ReactMarkdown from 'react-markdown'
|
||||
import { Link } from 'react-router-dom'
|
||||
import remarkGFM from 'remark-gfm'
|
||||
|
||||
import SectionTitle from '@/components/common/SectionTitle'
|
||||
import SubsectionTitle from '@/components/common/SubsectionTitle'
|
||||
@@ -97,7 +98,7 @@ export default ({ title, body }: Props) => {
|
||||
}, [body, pageNames])
|
||||
|
||||
return (
|
||||
<ReactMarkdown components={mdComponents}>
|
||||
<ReactMarkdown components={mdComponents} remarkPlugins={[remarkGfm]}>
|
||||
{realBody || `このページは存在しません。[新規作成してください](/wiki/new?title=${ encodeURIComponent (title) })。`}
|
||||
</ReactMarkdown>)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user