Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdown not converted to text #10

Closed
rubytastic opened this issue Dec 2, 2013 · 5 comments
Closed

markdown not converted to text #10

rubytastic opened this issue Dec 2, 2013 · 5 comments

Comments

@rubytastic
Copy link

With mail_view this markdown:

## You're almost there <%= @resource.username.capitalize %>!

renders correctly in html but in text just shows as is

## You're almost there <%= @resource.username.capitalize %>!

What do I do wrong? Using rails 4

@schneems
Copy link
Member

schneems commented Dec 2, 2013

No clue here it works correctly in github.com/codetriage/codetriage

@rubytastic
Copy link
Author

Strange I copied your exact
https://github.com/codetriage/codetriage/blob/master/app/views/user_mailer/send_daily_triage.md.erb
removed the variables and tested

text:
https://dl.dropboxusercontent.com/spa/cgxgpio9ycmwd04/o9saxcm8.png

html:
https://dl.dropboxusercontent.com/spa/cgxgpio9ycmwd04/x65oy7n9.png

using red carpet latest with : config/initializers/maildown.rb

Maildown::MarkdownEngine.set do |text|
  carpet = Redcarpet::Markdown.new(Redcarpet::Render::HTML, {})
  carpet.render(text).html_safe
end

Using:

mail_view (v2.0.1@35ca57, RVM: ruby-2.0.0-p353 [ectasio]) [gem]

Im not sure if this is really related to this gem or the mail_view gem.
Since we have many locales and several custom tryout methods failed + markerb failed hope to have this issue resolved. Using Rails 4.

Any thoughts on what could cause this problem? thanks in advance and making maildown!

@rubytastic
Copy link
Author

Also sending a mail from rails console gives incorrect markdown in the text format.

EDIT: Also used blue cloth instead of markdown ( and remove initialiser setting red carpet but problem persist)
you are sure your repo really works? Im using ruby 2.0.0 stable

--_av-TpkL-4Q_lOqI-0CLLaUXbA
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

Hello @,

Here are some issues you should check out:

### bla
- - -

Go forth and make the world a better place

[@schneems](http://twitter.com/schneems)

[Help triage more repos at codetriage.com](http://ectasio.dev:3000/)


--_av-TpkL-4Q_lOqI-0CLLaUXbA
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<p>Hello @,</p>

<p>Here are some issues you should check out:</p>

<h3>bla</h3>

<hr>

@jgrau
Copy link
Contributor

jgrau commented May 3, 2016

Let's keep those issue counts down - I say close this issue. It's old. It's stale. The reproduction/example files are no longer available. Having zero issues would be nice. :)

@schneems
Copy link
Member

Seems fine. If you have an app that reproduces the problem send it this way and we can re-open. Thanks for the bump!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants