markdown-include icon indicating copy to clipboard operation
markdown-include copied to clipboard

Code inclusion

Open sethen opened this issue 11 years ago • 0 comments

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.

sethen avatar Nov 14 '15 23:11 sethen