问题
Is there a way in Github to include md files in for example the README.md?
# Headline
Text
[include](File:load_another_md_file_here.md)
It should not link to the file, it should load the contents from it, like PHP include / file_get_contents.
回答1:
That does not seem to be possible, especially when considering github/markup#346 and github/markup#172.
No include directive is supported.
回答2:
This is not the correct answer but a workaround for others who really want this.
It's possible to use Gulp and Gulp Concat to merge the files into one before they are sent to Github..
回答3:
Ruby gem markdown_helper implements include files for GitHub flavored markdown (GFM).
Disclosure: I wrote the gem.
回答4:
Since it is not possible I just ended up placing a link as
[MY-LINK](../../SOME-OTHER-README.MD)
来源:https://stackoverflow.com/questions/35080160/github-include-md-files-in-readme-md