-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to render GIF from markdown to html github pages #1215
Comments
The problem here is that Markdown on GitHub.com is rendered with our CommonMark-compatible renderer, but Pages by default uses kramdown. You can have Pages use the same renderer by creating a file called markdown: GFM Let me know if this works for you! |
👋 I'm going to go ahead and close this out. If you're still having trouble with your images on your Pages site, please reach out to the support team. They'll be able to take a closer look for you. |
Works for me. Sent you a tip of 1.0 BAT Thank you Sir |
I am trying to do this, but I'm getting an error.
|
Hi Github/Markup,
Thank you for your reply
…On Mon, 7 Mar 2022, 14:10 Tushar Gautam, ***@***.***> wrote:
I am trying to do this, but I'm getting an error.
Markdown processor: "GFM" is not a valid Markdown processor.
Available processors are: kramdown
Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_posts/2021-10-31-CacheBasics.markdown':
Invalid Markdown processor given: GFM
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
Invalid Markdown processor given: GFM
—
Reply to this email directly, view it on GitHub
<#1215 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARTGKQIOPMMHOQUC2QB26H3U6VXRZANCNFSM4FJ733QA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi, what do I need to do |
Add this to your _config.yml to enable GitHub Flavoured Markdown for kramdown. kramdown: |
Using the GRM renderer suggested at this issue github/markup#1215
changed markdown to markdown: gfm for gif (github/markup#1215)
I have inserted my the GIF in the README.md as the following, using HTML tag,
https://github.com/goswami-rahul/alien-invasion-game/blob/027071489c12df633d362351364b642443a4415f/README.md#L8
It is displayed correctly in the README, but when I open the repo in the
github.io
website, the html code is displayed as normal text, rather than rendering it as GIF. I inspected and found it to be rendered as:What should I do to render it correctly?
The text was updated successfully, but these errors were encountered: