arturadib / strapdown

Instant and elegant Markdown documents in the browser
http://strapdownjs.com
MIT License
2.48k stars 410 forks source link

embed of gist doesn't work? #4

Open tjluoma opened 12 years ago

tjluoma commented 12 years ago

I tried to embed a gist using

<script src="https://gist.github.com/3361651.js?file=com.tjluoma.keeprunning-growl.plist"></script>

but nothing appears on the rendered page.

Dynalon commented 11 years ago

Problem with gist is, the github script uses "document.write" to create the gist in your document. However, it is not valid JS to call document.write after the document load event was fired. Strapdown does its magic after document.load, hence there is no way you can ever use document.write with strapdown.js