5

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 ?

2 Answers 2

3

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.

Sign up to request clarification or add additional context in comments.

Comments

0

Simple answer: you can't. I tried using the <iframe> and the <script> tag in Markdown and it simply doesn't work.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.