Reopen issue 346 - Include file-content as part of markdown
Please reopen https://github.com/github/markup/issues/346 - just look at the comments to see the support for this feature
Just in case anyone else was confused, @BurdetteLamar kindly explained to me that his markdown helper requires running before pushing to GitHub ie. it takes a template and generates the README.md from that template with any include files incorporated. You then check in the generated README.md. Combined with a Git hook, it could be a helpful automated workaround.
The proper solution is for GitHub to add this functionality directly so we do not need any workarounds.
"Proper solution" indeed. A main difference is that at GH, the inclusion could be done at render time. This would mean that the project's README.md would be the template, instead of being manufactured from the template and uploaded separately. :(
+1
+1
As I said earlier, I've put up gem markdown_helper, which does file inclusion and a couple of other things. It's written in Ruby, of course. Would some here be more comfortable with similar functionality offered in a different language? If so, which language(s)? Possibly one for Windows and one for Linux?
+1
I have same docs in different languages. The reason why I need such a feature is, that the code will be equal in every language file. But if the code changes I had to change it in every language.
+1
Would be great to be able to do this. In both the wiki and repo. Have a standard copyright, help, quick jump links back and forth, company policy information, etc... Edit one file and change it everywhere.
+1
+1
+1 It makes it easier to keep an organization's github-pages site in sync with the main repo's markdown. Ideally, one could store the common content in a separate file and have it included by other markdown documents.
Currently, If you have content which should be seen (not linked) on a README.md but also seen on a github-pages site then you must duplicate the content or include the whole README.md on the site. I don't think this is preferred for most use cases.
It would be even better if we could include a particular section of a separate markdown document.
What I'm advocating for is not including source files or external content but rather just other markdown from the same repository which shouldn't pose a security problem.
+1
+1
+1
+1
+1
+1
+1
It would be an idea to use the :+1: reaction to the issue to tally support, rather than flood the issue tracker with "+1" comments, now that Github actually does support that.
+1