Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code inclusion #5

Open
sethen opened this issue Nov 14, 2015 · 0 comments
Open

Code inclusion #5

sethen opened this issue Nov 14, 2015 · 0 comments

Comments

@sethen
Copy link
Owner

sethen commented Nov 14, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant