changed markdown renderer margins
This commit is contained in:
parent
01b7e1ab67
commit
de209a22b6
1 changed files with 4 additions and 1 deletions
|
|
@ -67,11 +67,14 @@ export const MarkdownRenderer = ({ chatMessage, className }: MarkdownRendererPro
|
||||||
urlTransform={(url) => url}
|
urlTransform={(url) => url}
|
||||||
components={{
|
components={{
|
||||||
p({ node, ...props }) {
|
p({ node, ...props }) {
|
||||||
return <p className="w-fit max-w-full">{props.children}</p>;
|
return <p className="w-fit max-w-full first:mt-0 last:mb-0 my-2">{props.children}</p>;
|
||||||
},
|
},
|
||||||
ol({ node, ...props }) {
|
ol({ node, ...props }) {
|
||||||
return <ol className="max-w-full">{props.children}</ol>;
|
return <ol className="max-w-full">{props.children}</ol>;
|
||||||
},
|
},
|
||||||
|
strong({ node, ...props }) {
|
||||||
|
return <strong className="font-bold">{props.children}</strong>;
|
||||||
|
},
|
||||||
h1({ node, ...props }) {
|
h1({ node, ...props }) {
|
||||||
return <h1 className="mb-6 mt-4">{props.children}</h1>;
|
return <h1 className="mb-6 mt-4">{props.children}</h1>;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue