radiate-framework / framework

A WordPress plugin and theme framework
https://radiate-framework.github.io/
MIT License
4 stars 0 forks source link

Mail `markdown` sends markdown for both HTML and text view #143

Closed BenRutlandWeb closed 2 years ago

BenRutlandWeb commented 2 years ago

Describe the bug The Mail component sends markdown for the text view of an email if the file extension is md or md.php.

To Reproduce Steps to reproduce the behavior:

  1. Create a mailable with the markdown method
  2. Send the mail
  3. Check the html and text output of the email
  4. See error

Expected behavior The HTML view to be HTML, and the text view to be plain markdown

Additional context This is since v2.2.0 with the updates to the view component. The Mailable class uses View::make() under the hood.