Thinking
\n'),
+ (str: string) => str.includes('\n')
+ ? str.replace('\n', '\n
')
+ : `${str}\n`,
+ ])(content)
}
export function PreCode(props: { children: any }) {
@@ -225,7 +241,10 @@ const Link = ({ node, ...props }: any) => {
}
export function Markdown(props: { content: string; className?: string }) {
- const latexContent = preprocessLaTeX(props.content)
+ const latexContent = flow([
+ preprocessThinkTag,
+ preprocessLaTeX,
+ ])(props.content)
return (