如何将 scribd 查看器嵌入 GitHub markdown?
How to embed a scribd viewer into GitHub markdown?
我想将 scribd 文档查看器嵌入到 GitHub README.md
,但是由 scribd 直接共享到 markdown 中生成的片段不会在 iframe
或 iframe
上呈现script
html 标签:
<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>
是否可以以某种方式嵌入原始 scribd 提供的 HTML 片段或将其转换为易于 github 消化的东西,同时它仍呈现为查看器?
我已经看到 wordpress
的简化降价标签,但不确定是否值得在 github 降价上进一步试验而不将 repo 转换为 github.io
网页。
提前感谢您的帮助!
这是 HTML 标记 sanitized/removed 来自 GitHub markdown 渲染页面:
jch/html-pipeline/lib/html/pipeline/sanitization_filter.rb#L44-L106
任何脚本都将被删除。
iframe
并没有被删除,如“Convert GitHub Pages Link to iframe
”中所示。
When you publish a code template for a chart or map (or any content) on GitHub Pages, it generates an online link that you can convert into an iframe tag
For any GitHub repository you have published online, go to its Settings page and scroll down to copy its GitHub Pages web address, which will appear in this general format:
https://USERNAME.github.io/REPOSITORY
Convert it into an iframe
by enclosing the link inside quotation marks as the source, and adding both start and end tags, in this general format:
<iframe src="https://USERNAME.github.io/RESPOSITORY">
</iframe>
If desired, improve the iframe
appearance on the secondary site by adding any of these optional attributes, such as width
or height
(measured in pixels by default, or percentages), or frameborder="0"
or scrolling="no"
, in this general format:
<iframe src="https://USERNAME.github.io/RESPOSITORY" width="100%" height="400" frameborder="0" scrolling="no"></iframe>
我想将 scribd 文档查看器嵌入到 GitHub README.md
,但是由 scribd 直接共享到 markdown 中生成的片段不会在 iframe
或 iframe
上呈现script
html 标签:
<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>
是否可以以某种方式嵌入原始 scribd 提供的 HTML 片段或将其转换为易于 github 消化的东西,同时它仍呈现为查看器?
我已经看到 wordpress
的简化降价标签,但不确定是否值得在 github 降价上进一步试验而不将 repo 转换为 github.io
网页。
提前感谢您的帮助!
这是 HTML 标记 sanitized/removed 来自 GitHub markdown 渲染页面:
jch/html-pipeline/lib/html/pipeline/sanitization_filter.rb#L44-L106
任何脚本都将被删除。
iframe
并没有被删除,如“Convert GitHub Pages Link to iframe
”中所示。
When you publish a code template for a chart or map (or any content) on GitHub Pages, it generates an online link that you can convert into an iframe tag
For any GitHub repository you have published online, go to its Settings page and scroll down to copy its GitHub Pages web address, which will appear in this general format:
https://USERNAME.github.io/REPOSITORY
Convert it into an
iframe
by enclosing the link inside quotation marks as the source, and adding both start and end tags, in this general format:<iframe src="https://USERNAME.github.io/RESPOSITORY"> </iframe>
If desired, improve the
iframe
appearance on the secondary site by adding any of these optional attributes, such aswidth
orheight
(measured in pixels by default, or percentages), orframeborder="0"
orscrolling="no"
, in this general format:<iframe src="https://USERNAME.github.io/RESPOSITORY" width="100%" height="400" frameborder="0" scrolling="no"></iframe>