I have source files that contains markdown text, but due to a quirk in the application that produces them, they don’t have any extension (not even .html).
I have an extension that fixes the destination path, so if the extensionless file for example is named something
I can access it as something.html
.
Problem is, how to instruct Middleman to render it as markdown? I’ve peaked around in the code, and it seams that Tilt is using the extension of the resource.source_file, to determine what renderer to apply to the file. I have not been able to find any place where it’s possible to instruct it to use another renderer. There is however a lot of options and blocks passed around, and maybe one of those could do the trick?