We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Tailwind classes being set for the different markdown HTML/elements are not working.
ai-chatbot/components/markdown.tsx
Lines 52 to 57 in dfc07ce
I attempted to reproduce the issue in a smaller repo so we can determine whether the implementation in AI-Chatbot is wrong or is causing the problem.
https://stackblitz.com/edit/prosemirror-react-markdown-qbtuvdd3?file=src%2FApp.tsx
The text was updated successfully, but these errors were encountered:
If you console.log({ stringFromMarkdown }) in the buildDocumentFromContent() function we do see the HTML elements with classes
console.log({ stringFromMarkdown })
buildDocumentFromContent()
{ "stringFromMarkdown": "<h1 class=\"text-3xl font-semibold mt-6 mb-2\">title</h1>\n<p><span class=\"font-semibold\">bold</span></p>\n<h2 class=\"text-2xl font-semibold mt-6 mb-2\">heading2</h2>" }
and if you change the <h1> being returned in the components to an <h5> it does change it...
<h1>
<h5>
h1: ({ node, children, ...props }) => { return ( <h5 className="text-3xl font-semibold mt-6 mb-2" {...props}> {children} </h5> ); },
Sorry, something went wrong.
No branches or pull requests
The Tailwind classes being set for the different markdown HTML/elements are not working.
ai-chatbot/components/markdown.tsx
Lines 52 to 57 in dfc07ce
I attempted to reproduce the issue in a smaller repo so we can determine whether the implementation in AI-Chatbot is wrong or is causing the problem.
https://stackblitz.com/edit/prosemirror-react-markdown-qbtuvdd3?file=src%2FApp.tsx
The text was updated successfully, but these errors were encountered: