Skip to content

Commit

Permalink
Merge pull request anse-app#269 from youhunwl/main
Browse files Browse the repository at this point in the history
  • Loading branch information
ddiu8081 authored Mar 16, 2023
2 parents c901130 + cd4e133 commit cdfca3b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/MessageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ export default ({ role, message, showRetry, onRetry }: Props) => {
})

const htmlString = () => {
const md = MarkdownIt().use(mdKatex).use(mdHighlight)
const md = MarkdownIt({
linkify: true,
breaks: true
}).use(mdKatex).use(mdHighlight)
const fence = md.renderer.rules.fence!
md.renderer.rules.fence = (...args) => {
const [tokens, idx] = args
Expand Down

1 comment on commit cdfca3b

@vercel
Copy link

@vercel vercel bot commented on cdfca3b Mar 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.