question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Send unrendered markdown as text/plain attachment

See original GitHub issue

Great plugin, thanks a bunch. When I send email from Thunderbird after rendering with the Markdown Here add-on, the message is sent with content-type multipart/alternative. The text/html portion looks great. The text/plain portion does not look great. Here’s an example.

This markdown:

# Header 1
This is a *sentence*.

## Header 2
This is a *sentence*.

###  Header 3
This is a *sentence*.

####  Header 4
This is a *sentence*.

#####  Header 5
This is a *sentence*.

######  Header 6
This is a *sentence*.

Appears like so in the text/plain portion of the email:

  Header 1
This is a *sentence*.

    Header 2
This is a *sentence*.

      Header 3
This is a *sentence*.

        Header 4
This is a *sentence*.

          Header 5
This is a *sentence*.

            Header 6
This is a *sentence*.

Could you add the option of sending the unrendered mardown as the text/plain portion of the email? Since it looks better than the text/plain portion above, please consider making that the default.

Issue Analytics

  • State:open
  • Created 10 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wookietreibercommented, Sep 18, 2015

👍 on this feature being implemented.

0reactions
devurandomcommented, Aug 7, 2018

In a MIME email everything is a “part”, including the text/plain part that is usually displayed when ignoring text/html parts, correct? The only difference between it appearing as an attachment or as part of the email’s text is how it is flagged?

Under that condition, I think this would be a great idea and also allow clients like KMail, which understand Markdown natively, allow to display the plain text part beautifully, while ignoring the text/html part.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do you display a section of plain text in GitHub markdown?
I am learning GitHub markdown. I would like to show some example code that contains fake email address like user@example.com .
Read more >
RFC 7764 – Guidance on Markdown - Hacker News
We render each through liquid, then send the resulting markdown in the text/plain part, and render it with redcarpet and github's sanitizer ...
Read more >
Getting Started | Markdown Guide
Markdown is a lightweight markup language that you can use to add formatting elements to plaintext text documents. Created by John Gruber in...
Read more >
How to use the mailmerge.template_message ... - Snyk
--boundary Content-Type: text/plain; charset=utf-8 Hello Laȝamon --boundary ... Message should contain an unrendered Markdown plaintext part and a ...
Read more >
Mailman 3 org-mode README file formats - Distutils-SIG - python.org
If it is an Emacs thing then I would vote "no" since that's very editor-specific and I suspect trying to support every plaintext...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found