-
Notifications
You must be signed in to change notification settings - Fork 49
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
Undesireable Injection of Commas to Seperate Children Elements #46
Comments
Resolved the issue by removing the |
I also ran into this problem and figured out it was from using multiple children elements instead of a single child. This rendered the commas between each child: <Page>
{categories.map((category) => (
<div class="list-item">
<div class="list-name">{category.name}</div>
<div class="list-description">{category.description}</div>
</div>
))}
</Page> but making sure that <Page>
<div>
{categories.map((category) => (
<div class="list-item">
<div class="list-name">{category.name}</div>
<div class="list-description">{category.description}</div>
</div>
))}
</div>
</Page> |
This removed the commas for me also, but it's not ideal. I am returning a chat ui with multiple messages inside a div. So it's not possible for me to return single child.
|
The Problem
While using the typed-html library, commas are used to separate Children elements, which get rendered. (Maybe it's something dumb on my end. Was pretty surprised to see the output...)
Use Case
Using typed-html to create email templates which will be sent using Nodemailer via Gmail's SMTP server. Bun is the runtime.
Example
tsconfig.json
example.tsx
Expected
Actual
The text was updated successfully, but these errors were encountered: