the-djmaze / snappymail

Simple, modern & fast web-based email client
https://snappymail.eu
GNU Affero General Public License v3.0
924 stars 109 forks source link

-- markdown option? -- #1604

Open scubamuc opened 1 month ago

scubamuc commented 1 month ago

my mail communication is generally unformatted plain text and html is avoided rigorously....

Sometimes basic formatting is required though. I've become quite accustomed to markdown.

grafik

Would it be possible to add markdown as an option to the fantastic editor in Snappymail?

Best regards and thanks for great software!

the-djmaze commented 1 month ago

There are many different ways how text/markdown is handled/viewed.

So how should SnappyMail handle Markdown? What rules to use when writing in HTML and go to text/plain? What rules to use when converting to HTML? Etc.

scubamuc commented 1 month ago

@the-djmaze, wow, thanks for the quick reply.

admittedly, hadn't considered any "rules". not being a dev makes this difficult to specify.

So how should SnappyMail handle Markdown?

in the same way it handles text / html, add a toggle for md.

What rules to use when writing in HTML and go to text/plain?

select either html, text or md.

What rules to use when converting to HTML?

no need for conversion, html is avoided. this is an option like "use plain text only" or "use plain text and md only"

do you have suggestions?

scubamuc commented 1 month ago

@the-djmaze since Snappymail is perfectly integrated in Nextcloud and the 1st choice mail client for Nextcloud, I was thinking somewhere along the lines of using the markdown functionality offered by Nextcloud. Almost all Nextcloud docs can be edited with Nextcloud editor as text or md and can be viewed/previewed in Nextcloud.

But I do understand the necessity to specify when Snappymail is standalone.

the-djmaze commented 2 weeks ago

Since many mail viewers don't handle markdown, the code needs to be transformed in HTML. So # becomes H1, etc. But when you look here on github, many other things are possible.

And when you view markdown in different applications, the styling is not consistent.

So which is "best" for our viewing purposes?

scubamuc commented 2 weeks ago

asking for my preferences, I'd say GitHub markdown is the reference but Snappymail being 1st choice mail for Nextcloud, this would be my personal favourite.