News for hackers. Stuff that matters.
Re:Caniemail.com (like caniuse but for email content) by zzzkkk on Monday May 06, 2024 @09:00PM (#40281197)
Is this intended as sarcasm? Markdown renders to html, it's an authoring syntax that happens to be readable in it's "code" state. How would it solve email?

The real issue is bespoke rendering engines instead of just using a rule of "everything the current browser can do, but no js".

Re:Caniemail.com (like caniuse but for email content) by arp242 on Tuesday May 07, 2024 @12:26AM (#40282329)
Markdown gives most people >95% of the formatting they want to do.

It's easy and fairly intuitive to write (most of it, anyway).

It's easy to read in different formats and ways (HTML, plain text).

It doesn't add highly complex rendering issues. I've worked on two email clients in the last ten years, and the amount of weird HTML some send is just bonkers. Is <div style="position:fixed"> in emails crazy? Yes. Do you need to deal with it? Also yes.

Re:Caniemail.com (like caniuse but for email content) by prmoustache on Tuesday May 07, 2024 @06:11AM (#40283956)
The point is: markdown is HTML, not something else.
Re:Caniemail.com (like caniuse but for email content) by arp242 on Tuesday May 07, 2024 @06:31AM (#40284039)
It's not. Markdown is markdown. It can render to HTML, but that's a different thing. I struggle to understand why this is even a point of contention.
Re:Caniemail.com (like caniuse but for email content) by prmoustache on Tuesday May 07, 2024 @06:52AM (#40284142)
Since it supports any HTML tag, it is irrelevant.

Mandate markdown and MTAs and marketing departments will send you markdown only made of pure HTML.

Re:Caniemail.com (like caniuse but for email content) by arp242 on Tuesday May 07, 2024 @07:12AM (#40284245)
That's quite the pivot from "markdown is HTML". But no, it probably shouldn't support HTML tags, or support it with limits. And maybe also a few other things like #-headers also shouldn't be supported as it can be too easily to do by accident. All of that seems pretty obvious in all but the most aggressively pedantic reading.
Re:Caniemail.com (like caniuse but for email content) by jeltz on Tuesday May 07, 2024 @06:36AM (#40284065)
Is C amd64 assembly then?
Re:Caniemail.com (like caniuse but for email content) by prmoustache on Tuesday May 07, 2024 @06:56AM (#40284152)
If your C code end up like that, yes:

``` #include <stdio.h>

int main() { /* my software in ASM */ __asm__ ( [...<insert your assembly code lines here>...] );

    return 0 ;
} ```

And you are pretty sure this is pretty much what would happen with markdown in emails if it ended up being mandatory. You would end up with emails entirely made of html.

Re:Caniemail.com (like caniuse but for email content) by Eric_WVGG on Monday May 06, 2024 @11:59PM (#40282209)
Not in the slightest.

You can’t make elaborate layouts with Markdown. You can’t obfuscate text in images or make hidden links or inject JavaScript.

Just some basic text styling (headers, italics, bold type), and images. Everything necessary to make a well-formatted message — which is what email is supposed to be — instead of mailing a web page, in a medium that hasn’t been refined for quality and safety like modern HTML+CSS has.

Re:Caniemail.com (like caniuse but for email content) by pavo-etc on Monday May 06, 2024 @10:12PM (#40281598)
If emails could be marked up with the subset of HTML that Markdown is able to generate without having inlined HTML tags, email markup would be so pleasant. Just bold/italics, some headings, tables, properly flowing text, code blocks, horizontal rule, links, and images.
Re:Caniemail.com (like caniuse but for email content) by prmoustache on Tuesday May 07, 2024 @06:14AM (#40283965)
you just need gemtext. Bold/Italics can be done with unicode, no need for a markup language.

Images can just be links and it would be a setting on the client to open it or not. Like what the Lagrange gemini browser does: it lets you click on a link to an image to load it.

I would argue that even tables are superfluous, you could put a csv file in a block quote and people's clients could just render it optionnally.

Re:Caniemail.com (like caniuse but for email content) by shortformblog on Monday May 06, 2024 @09:03PM (#40281217)
Yes, this. Many more would be fine with HTML email if it didn’t work like IE6—and honestly, the only reason it does is because of decades-old enshittification that we failed to address at the time.