#511 accepted
Josh Dick

Inline HTML in Markdown

Reported by Josh Dick | November 27th, 2013 @ 10:49 PM

I write this with the full understanding that this might possibly be a duplicate of #197, but I wanted to err on the side of creating a new ticket. :)

Markdown allows for inline HTML, but MailMate appears to clobber inline HTML when it is mixed side-by-side with Markdown. I understand from experimenting that MailMate won't attempt to parse input as Markdown unless it includes Markdown syntax characters. So, until I add something like *bold syntax* to a message, any inline HTML elsewhere in the input is rendered in the preview as plain text, which makes sense.

Adding the *bold syntax* (for example) at the bottom of the message will turn on Markdown parsing, at which point any inline HTML is no longer rendered as plain text in the preview, but doesn't appear to always be rendered as expected, either. For example, I tried using <table> tags in the message body as an experiment, but no <table> tags appeared in the generated output.

Is this expected behavior?

Comments and changes to this ticket

  • benny

    benny November 28th, 2013 @ 10:00 AM

    • State changed from “new” to “accepted”

    Yes, this is expected behavior. MailMate does not currently allow inline HTML in Markdown. The reason for this is that MailMate would have to put this HTML verbatim in the plain text body part of the message. This is perhaps better explained here (different problem, but the same reason).

    I might remove this restriction and therefore I'll put this ticket in an “accepted” state, but to be honest I'm not yet quite sure how to handle this. The obvious approaches are:

    • Just put verbatim HTML in the plain text body part.
    • Convert HTML to text in the plain text body part.

    The first solution is easier and even though some recipients can only handle plain text messages then it might still be better than the second solution. The main problem might be that I really don't want to encourage the use of inline HTML.

  • benny

    benny February 19th, 2014 @ 12:59 PM

    @Tull: Thanks for your thoughts on the subject. I'll keep them in mind (and I do mean that). With respect to “typical” Markdown, it's not as simple as it sounds. I have to make sure that the plain text body part (currently the raw Markdown) behaves “nicely”, for example, the line break tradition of Markdown does not work well for emails.

  • benny

    benny January 24th, 2019 @ 12:24 PM

    Re: [MailMate #511] Inline HTML in Markdown

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket