Skip to content

joshuapinter/maildown_partials_issue

Repository files navigation

This repo is an example app to demonstrate how the maildown gem does not render partials in plain text correctly.

It is in direct response to this Github Issue: zombocom/maildown#53

Steps to reproduce the issue:

  1. Clone the repo and install gems via bundle.

  2. Run the server via bundle exec rails s

  3. Navigate to http://localhost:3000/rails/mailers/notifier_mailer/markdown_partial_test in your browser:

    Screen Shot 2022-09-21 at 10 11 14

    By default the HTML format will appear, and it appears correctly.

  4. Click on the format drop down and select "View as plain-text email".

    Screen Shot 2022-09-21 at 10 11 46

    You will see that the partial gets rendered incorrectly as HTML instead of plain text.

  5. To see what it should look like, navigate to http://localhost:3000/rails/mailers/notifier_mailer/non_markdown_partial_test.txt in your browser.

    Screen Shot 2022-09-21 at 10 12 02

    You will see that using two files for formats (html.erb and text.erb) and not using markdown (md.erb) via maildown renders the partials correctly for both HTML and plain text.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published