Markdown does not work with ERB files


I use sinatra and ruby to create web applications my views are built on .erb as I try to use atom as my new editor but the markdown feature doesn’t work with .erb


What Markdown feature is that? Can you be more specific as to what isn’t working?


I have files that are *.md.erb that will not render.


That’s because Atom doesn’t recognize *.md.erb as Markdown files, it recognizes them as HTML ERB files:

If you change the grammar to Markdown so that Atom knows it is a Markdown file, you can preview it just fine.