I would like to embed a scribd document viewer into a GitHub README.md
, but the snippet generated by scribd sharing directly into markdown doesn't render on either on iframe
or script
html tags:
<iframe class="scribd_iframe_embed" title="Analysis of Corporate Communication" src="https://www.scribd.com/embeds/177533131/content?start_page=1&view_mode=scroll&access_key=key-2h5x537j8hvyx8jd60c8&show_recommendations=false" data-auto-height="true" data-aspect-ratio="0.7080062794348508" scrolling="no" id="doc_28599" width="null" height="null" frameborder="0"></iframe><script type="text/javascript">(function() { var scribd = document.createElement("script"); scribd.type = "text/javascript"; scribd.async = true; scribd.src = "https://www.scribd.com/javascripts/embed_code/inject.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(scribd, s); })();</script>
Is it possible to embed somehow the original scribd provided HTML snippet or to transform this into something digestible to github while it is still rendered as the viewer?
I've seen simplified markdown tags for wordpress
, but not sure if it's worth to experiment further with this on github markdown at all without converting the repo into a github.io
webpage.
Thanks for your help in advance!
Here are the HTML tags sanitized/removed from a GitHub markdown rendered page:
jch/html-pipeline/lib/html/pipeline/sanitization_filter.rb#L44-L106
Any script would be removed.
See github/markup issue 245
iframe
are not removed though, as illustrated in "Convert GitHub Pages Link toiframe
".