[GH-ISSUE #162] Embedded asciinema into ReStructuredText README ignored on GitHub #739

Closed
opened 2026-03-15 10:08:41 +03:00 by kerem · 1 comment
Owner

Originally created by @deeplook on GitHub (May 31, 2016).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/162

I'm trying to embed an asciinema into a ReStructuredText README using this snippet:

.. raw:: html

  <script type="text/javascript" src="https://asciinema.org/a/14.js" 
          id="asciicast-5xwfvcrrk09fy3ml3a8n67hep" async 
          data-autoplay="true" data-loop="false"></script>

When I convert this with rst2html.py the snippet appears fine in the resulting HTML, but after uploading the README.rst to https://github.com/deeplook/sparklines GitHub will simply not show it. Is this a limitation of GitHub and/or is there a workaround without using MarkDown?

Originally created by @deeplook on GitHub (May 31, 2016). Original GitHub issue: https://github.com/asciinema/asciinema/issues/162 I'm trying to embed an asciinema into a ReStructuredText README using this snippet: ``` .. raw:: html <script type="text/javascript" src="https://asciinema.org/a/14.js" id="asciicast-5xwfvcrrk09fy3ml3a8n67hep" async data-autoplay="true" data-loop="false"></script> ``` When I convert this with `rst2html.py` the snippet appears fine in the resulting HTML, but after uploading the `README.rst` to https://github.com/deeplook/sparklines GitHub will simply not show it. Is this a limitation of GitHub and/or is there a workaround without using MarkDown?
kerem closed this issue 2026-03-15 10:08:46 +03:00
Author
Owner

@ku1ik commented on GitHub (May 31, 2016):

Github doesn't allow <script> tags in the README. You can however use image link:

<a href="https://asciinema.org/a/14?autoplay=1" target="_blank"><img src="https://asciinema.org/a/14.png" width="835"/></a>
<!-- gh-comment-id:222628301 --> @ku1ik commented on GitHub (May 31, 2016): Github doesn't allow `<script>` tags in the README. You can however use image link: ``` <a href="https://asciinema.org/a/14?autoplay=1" target="_blank"><img src="https://asciinema.org/a/14.png" width="835"/></a> ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#739
No description provided.