|
|
@@ -215,6 +215,7 @@ function _MarkDownContent(props: { content: string }) {
|
|
|
components={{
|
|
|
pre: PreCode,
|
|
|
code: ({ className, children }) => {
|
|
|
+ // console.log('className, children-----3',className, children)
|
|
|
if (className && className.includes('language-think')) {
|
|
|
return (
|
|
|
<code style={{ whiteSpace: 'pre-wrap', background: '#f3f4f6', color: '#525252' }}>
|
|
|
@@ -225,14 +226,19 @@ function _MarkDownContent(props: { content: string }) {
|
|
|
return children;
|
|
|
}
|
|
|
},
|
|
|
- p: (pProps) => <p {...pProps} dir="auto" />,
|
|
|
+ p: (pProps) => {
|
|
|
+ // console.log('pProps-----2',pProps)
|
|
|
+ return <p {...pProps} dir="auto" />
|
|
|
+ },
|
|
|
a: (aProps) => {
|
|
|
+ // console.log('aProps-----4',aProps)
|
|
|
const href = aProps.href || "";
|
|
|
const isInternal = /^\/#/i.test(href);
|
|
|
const target = isInternal ? "_self" : aProps.target ?? "_blank";
|
|
|
return <a {...aProps} target={target} />;
|
|
|
},
|
|
|
img: ({ src, alt }) => (
|
|
|
+ // console.log('src, alt-----5',src, alt),
|
|
|
<div style={{ width: '100%', height: 'auto', cursor: 'pointer' }}>
|
|
|
<Image
|
|
|
width='80%'
|