[PR #155] [MERGED] feat(html-block): add style tag support & fix style leaks #190

Closed
opened 2026-03-01 14:40:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/arikchakma/maily.to/pull/155
Author: @ChmaraX
Created: 3/12/2025
Status: Merged
Merged: 3/16/2025
Merged by: @arikchakma

Base: mainHead: feat/add-support-for-style-tag


📝 Commits (4)

📊 Changes

2 files changed (+18 additions, -3 deletions)

View changed files

📝 packages/core/src/editor/nodes/html/html-view.tsx (+18 -1)
📝 packages/render/src/maily.tsx (+0 -2)

📄 Description

  • adds support for style tags inside custom HTML blocks
  • fixes leakage of app styles into the HTML block preview
  • removes default 0 margins applied on default html tags (blockquote,h1,h2,h3,img,li,ol,p,ul)

Reasoning

Most of the free HTML email templates and also templates generated by AI use

## 📋 Pull Request Information **Original PR:** https://github.com/arikchakma/maily.to/pull/155 **Author:** [@ChmaraX](https://github.com/ChmaraX) **Created:** 3/12/2025 **Status:** ✅ Merged **Merged:** 3/16/2025 **Merged by:** [@arikchakma](https://github.com/arikchakma) **Base:** `main` ← **Head:** `feat/add-support-for-style-tag` --- ### 📝 Commits (4) - [`d137e38`](https://github.com/arikchakma/maily.to/commit/d137e389203a31181e08accbe82b8014f6f41eb4) feat(html-block): add style tag support & fix style leaks - [`95815ef`](https://github.com/arikchakma/maily.to/commit/95815ef35e8e7e066d637def464648ec425d951c) wip - [`5f18a7f`](https://github.com/arikchakma/maily.to/commit/5f18a7f73241299593ce7e9f7cd7a216fa810b88) fix: isolate styles - [`796efe7`](https://github.com/arikchakma/maily.to/commit/796efe7b2e709e06f0f49275bc55de036de33ead) wip ### 📊 Changes **2 files changed** (+18 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/editor/nodes/html/html-view.tsx` (+18 -1) 📝 `packages/render/src/maily.tsx` (+0 -2) </details> ### 📄 Description - adds support for `style` tags inside custom HTML blocks - fixes leakage of app styles into the HTML block preview - removes default `0` margins applied on default html tags (`blockquote,h1,h2,h3,img,li,ol,p,ul`) **Reasoning** Most of the free HTML email templates and also templates generated by AI use <style> tag to define CSS classes instead of inline styles. A lot of users will want to copy-paste such templates or use the style tag when creating their own. Custom style classes support: https://github.com/user-attachments/assets/9d39d37b-46c9-4fe4-bc78-21a0fd8c8494 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 14:40:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/maily.to#190
No description provided.