You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, Markdown supports GIF images because HTML does, without any additional tags. GIF, even the animated one, is just an image, and browser plays it automatically. So it sounds weird hearing that mdbook doesn't support GIF images, as it just renders the HTML. Could you please provide some test cases and see if the issue reproduces?
J.D@B14 MSYS ~/D/W/84fa2e05
# find . -name 002-rust-hello.gif
./book/assets/002-rust-hello.gif
./resource/rec/002-rust-hello.gif <== in location 'a'
./src/assets/002-rust-hello.gif <== in location 'b'
J.D@B14 MSYS ~/D/W/84fa2e05
# head src/001-序言.md -n 5 <== Markdown source code# 序言 <== This line doesn't work for mdBook but works for other IDEs or browsers. <== This line works for mdBook.
I apologize for the oversight in my previous testing.
Let me provide a conclusion first: mdBook can display gif in some cases, but not in others.
Now, I'll provide specific cases I encountered:
For path "a," the gif file is outside the src directory.
For path "b," the gif file is inside the src directory.
Hmm. Yeah, looks like it's the issue with paths. Path handling in mdbook is definitely weird in some cases: #1883, #1753. I wouldn't be surprised if this is due to the path handling we have.
From what I understand, it doesn't seem like anyone is currently working on it, but it would be indeed great to fix.
Question
We know that Markdown perfectly supports GIF images, but it seems that mdBook does not. What is the community's stance on this feature?
Version
No response
The text was updated successfully, but these errors were encountered: