0

As the title says how can you embed one gist (a shell script) into another gist (markdown file)?

  • js is disabled so not scripts embeding
  • github's {% gist id %} does not work.

Is there a way? Thanks

Max
  • 145
  • 1
  • 14
  • 2
    Markdown has no concept of including one file in another. Some third party addons have provided such a feature, but it is non-standard and not likely to be supported across implementations. I can't say definitively (so this is not an answer), but I suspect this is not possible. – Waylan Apr 12 '17 at 17:48
  • Possible duplicate of [Github: How to embed a gist into README.md?](http://stackoverflow.com/questions/11622509/github-how-to-embed-a-gist-into-readme-md) – msanford Apr 12 '17 at 19:49
  • Yeah, idk if gist had any extra features but yeah. – Max Apr 12 '17 at 21:19

1 Answers1

0

An embedded gist is an <iframe> included via an inline <script> tag, for example, from the GitHub Blog announcing embedded gists:

embedded gist #DOM

The best you can hope with gist is to make a gist with multiple files (which you can do easily) and then just link or textually reference the other.

Or, better, to choose another publishing platform, like GitHub pages (if you're using gists already). If you're at the point that you're embedding code snippits into others, you probably want something that's a bit more flexible and customizable.

msanford
  • 10,127
  • 8
  • 56
  • 83
  • 1
    Yeah, that really what I got from reading other questions but thanks for clarifying. – Max Apr 12 '17 at 21:18
  • 1
    well it does not work on md/gists but i think i up voted it, sry. Me been under 15 rep does not show it publically i think – Max Apr 13 '17 at 14:37
  • @Max The up arrow above the number on the left. Also, the check mark will be outlined below the down arrow, also left. I mention it partly because you'll get +2 for accepting an answer. :) – msanford Apr 13 '17 at 14:43