How to include jsfiddle (or equivalent) in github markdown?

I'm looking for a way to embed some html in my .md markdown files.
Actually, I would like to embed jsfiddle resource in my markdown.

Is there a way to accomplish this ?

It looks like current markdown specs does not provide a way to embed external html, even in github flavored markdown.

I have found the following project, from 2012, which is all about this, but I think it's only a kind of improvement proposal.

Extending Markdown/MarkdownSharp for jsFiddle embedding

Note that the previous article references similar discussions but targeting SO instead of GitHub ( Custom jsFiddle for Stack Overflow, Auto-embed jsFiddle into questions )

I checked the following references from GitHub without finding what I'm looking for ( Mastering Markdown, Writing on GitHub )

Is the feature voluntarily not supported in GitHub markdown, would it be in a near future ?


JSFiddle fiddles can be embedded using an <iframe> , and Markdown has always supported embedded HTML.

However for security reasons it is common for only a subset of HTML to be permitted. GitHub's whitelist doesn't include the <iframe> tag. I'm not aware of any way to do what you want that is compatible with GitHub's tag whitelist.

链接地址: http://www.djcxy.com/p/72094.html

上一篇: 从jsfiddle引用外部图像和HTML文件

下一篇: 如何在github markdown中包含jsfiddle(或等价物)?