[PR #232] Improve HTML to plain text conversion in Maily #456

Open
opened 2026-03-15 02:15:52 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/arikchakma/maily.to/pull/232
Author: @spikefield
Created: 3/3/2026
Status: 🔄 Open

Base: mainHead: main


📝 Commits (1)

  • 4044255 give Maily the fancy HTML to plain text converter

📊 Changes

2 files changed (+120 additions, -1 deletions)

View changed files

📝 packages/render/src/render.test.ts (+59 -1)
📝 packages/render/src/render.ts (+61 -0)

📄 Description

Hello, I was working with Maily in my own app and ended up writing a much fancier HTML to plain text conversion that will be closer to what someone would actually want to receive. It handles a few different scenarios I found in testing. I think it would be useful for the app. I was not sure how you would want to integrate this so I only added the function to the render code and added tests, I would leave any integration up to you. I don't like to add a lot of comments but it's extremely non-obvious what most of this does.

Cheers!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/arikchakma/maily.to/pull/232 **Author:** [@spikefield](https://github.com/spikefield) **Created:** 3/3/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`4044255`](https://github.com/arikchakma/maily.to/commit/4044255ff41df8cdbf982a9d62640ae7caa13131) give Maily the fancy HTML to plain text converter ### 📊 Changes **2 files changed** (+120 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/render/src/render.test.ts` (+59 -1) 📝 `packages/render/src/render.ts` (+61 -0) </details> ### 📄 Description Hello, I was working with Maily in my own app and ended up writing a much fancier HTML to plain text conversion that will be closer to what someone would actually want to receive. It handles a few different scenarios I found in testing. I think it would be useful for the app. I was not sure how you would want to integrate this so I only added the function to the render code and added tests, I would leave any integration up to you. I don't like to add a lot of comments but it's extremely non-obvious what most of this does. Cheers! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#456
No description provided.