Get rid of additional .erb extension on markdown files

I use some helpers in the config.rb to markup specific parts of the page (see https://github.com/w3c/wai-tutorials/blob/master/config.rb#L69) but that requires that I have the .md.erb extension, which means that syntax highlighting for markdown files is broken in almost every development environment, including editing on Github.

The easiest way would be to extend Markdown (I use kramdown) with custom tags, but I have no idea how to do that or if that’s even a possibility.

Probably you have an idea on how to tackle this?

If you don’t need the output from the helpers to be interpreted as markdown, I think you can change the order of the suffixes. .erb.md

Unfortunately this converts the erb code to HTML <%= code_start> becomes &lt;%= code_start&gt; and this is not interpreted by erb. I could probably use {::nomarkdown}, which is the better and more clean alternative anyway. I think I’ll do it that way.