achyutdev
achyutdev

Reputation: 225

Can speaker deck slide be embedded in README file of github?

I have a presentation slide in speakerdeck and i want to embed it in README.md page of github repository. is it possible to do so?

Here is my embedded script from speakerdeck

<script async class="speakerdeck-embed" data-id="3586d5e7f45ce6" data-ratio="1.33333333333333" src="//speakerdeck.com/assets/embed.js"></script>

README.md

###Introduction

This is a introduction of the app ...

###Slide

<script async class="speakerdeck-embed" data-id="3586d6f45ce6" data-ratio="1.33333333333333" src="//speakerdeck.com/assets/embed.js"></script>

slide does not appear on README section of repo.

Upvotes: 6

Views: 1717

Answers (4)

Wahib Ul Haq
Wahib Ul Haq

Reputation: 4415

Everything said above is true but I wanted to add one additional piece of information.

Even though README will not display the embedded slide but if this repo is converted into Github Page then the same README will be rendered perfectly and it will display the speakerdeck slide as well.

Upvotes: 0

CodeWizard
CodeWizard

Reputation: 142532

There is no way to add scripts to markdown.
Mark down can be only used for text formatting and not more.

Here is what allowed to use: enter image description here


What can you still do?

You can still embed images like you see here on this answer. So convert your slides to images and embed them

Upvotes: 2

user3117575
user3117575

Reputation:

No, you cannot embed scripts inside GitHub's markdown.

Being able to embed scripts would lead to XSS (Cross-site scripting) insecurities, therefore it is not possible by GitHub's design, and for good reason.

Upvotes: 2

David Gomez
David Gomez

Reputation: 2772

No, you can't and you shouldn't mostly because of security reasons.

GitHub won't allow the execution of an external script.

Check this answer: Embed JavaScript in GitHub README.md

Upvotes: 5

Related Questions