Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow HTML in Markdown to render in messages #739

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

humphd
Copy link
Collaborator

@humphd humphd commented Nov 16, 2024

Fixes #676

The other day @tarasglek and I were discussing how it would be useful if we could render HTML in Markdown. Our particular use-case was adding details/summary elements to hide the model's "thinking" from the actual response. We've also wanted to have proper table support in the past, and HTML tables are better than Markdown in many cases.

This updates our Markdown rendering to safely support embedded HTML, using the same rules that GitHub uses.

Screenshot 2024-11-16 at 3 02 00 PM Screenshot 2024-11-16 at 3 02 18 PM

@humphd humphd merged commit 09dd743 into main Nov 16, 2024
4 checks passed
@humphd humphd deleted the humphd/allow-html-in-markdown branch November 16, 2024 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chatcraft markdown flavor does not render html tables inline
1 participant