Open
Description
Currently, markdown-include can pull in any type of file... It just looks at the path and goes from there. It should be smart enough to know when it's including a code snippet and wrap it with the appropriate code block for easier documentation. For instance, you could do
#include "ruby.rb"
And markdown-include should compile
class MyClass {
def initialize(arg) {
@arg = arg;
}
}
wrapped in appropriate backticks that correspond to the language for syntax highlighting if available.