File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed
packages/crd-theme/markdown Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 11import { useState , useEffect , useRef } from 'react'
22import cx from 'classnames'
33import { MDXProvider } from '@mdx-js/react'
4+ import { Helmet } from 'react-helmet'
45import CodeBlock from './codeBlock'
56import Link from './Link'
67import Loading from '../component/Loading'
@@ -35,19 +36,26 @@ function Markdown(markdownProps) {
3536 renderMarkdown ( )
3637 } , [ ] )
3738
39+ console . log ( 'props' , props )
3840 return (
39- < div className = { cx ( 'markdown' , styles . markdown , styles . markdownwrapper ) } ref = { markdownWrapperRef } >
40- {
41- MarkdownCP
42- ?
41+ < >
42+ < Helmet >
43+ < title > { props . title } </ title >
44+ < meta name = { props . title } content = { props . title } />
45+ </ Helmet >
46+ < div className = { cx ( 'markdown' , styles . markdown , styles . markdownwrapper ) } ref = { markdownWrapperRef } >
47+ {
48+ MarkdownCP
49+ ?
4350 < MDXProvider
4451 components = { components }
4552 >
4653 < MarkdownCP />
4754 </ MDXProvider >
48- : < Loading />
49- }
50- </ div >
55+ : < Loading />
56+ }
57+ </ div >
58+ </ >
5159 )
5260}
5361
Original file line number Diff line number Diff line change @@ -4096,6 +4096,15 @@ crd-prerender-spa-plugin@^0.2.0:
40964096 "@prerenderer/renderer-puppeteer" "^0.2.0"
40974097 html-minifier "^4.0.0"
40984098
4099+ crd-seed@0.2.24:
4100+ version "0.2.24"
4101+ resolved "https://registry.npmjs.org/crd-seed/-/crd-seed-0.2.24.tgz#50ace28c8fe1c96a3cbef259ffcef08677eb5ba2"
4102+ integrity sha512-YwQKdCh3LNkQxOqnLeKPmhpfMuNVT1uGh4hhkEF/8yQ465sfnTKtntflVvOIRpF6DAr8SBCpiILXyw8xkxaD/g==
4103+ dependencies:
4104+ react-markdown "^3.3.0"
4105+ react-router-dom "^4.2.2"
4106+ react-switch "^5.0.1"
4107+
40994108cross-fetch@2.2.2:
41004109 version "2.2.2"
41014110 resolved "https://registry.npmjs.org/cross-fetch/-/cross-fetch-2.2.2.tgz#a47ff4f7fc712daba8f6a695a11c948440d45723"
You can’t perform that action at this time.
0 commit comments