Markdown does not work with ERB files


#1

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


#2

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


#3

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


#4

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.