-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
[BUG] Regular Markdown images are incorrectly recognized as figures #1291
Comments
Thank you for the fix 🙂 |
Oh... this cause a lot of images broken like What do you think, @HEIGE-PCloud ? |
If you ask me, the current (and original I don't see a benefit in changing the standard markdown behavior to something non-standard. When I paste an existing markdown document in a blog, I expect it to look exactly like it is displayed in other markdown engines. Figures are exclusive to this kind of blog so in my opinion they should be enabled explicitly (by adding the figure description to the markdown image). |
You are right, @flobernd. The standard markdown does not handle the the additional figure description text, thus most of markdown writers does not add it when inserting images to the document. The question is, while rendering the markdown document, the default behavior of the image rendering shoud be add to gallary, click to enlarge or open the image in new tab. Which is what the most of markdown supported blog system do, even github's image will open in new tab when clicked. Anyway, this is a preference matter. If someone is using |
I remember the image behavior being a long standing controversial topic. People have conflicing opinions about what the correct behavior should be, and I think they all have vaild reasons for their specific use cases. I'll just provide one of my observations here. I think sometimes blog authors care about the gallary feature more than the readers. As a reader, I can simply zoom in if I want to see a picture at a larger form factor. I also rarely find listing all images in a blog post in a row useful, since most images in a blog post are supplementary to the main text. I imagine many other text based content focused websites (like news websites) don't provide a "gallary" feature for a similar reason. |
That's what I mean. In
I agree, personally I'm not a fan of this gallery feature.
Does people use inline image frequently when writing markdown? at least for me, I rarely use
The scenario is people may migrate from one static blog generator to another, e.x. from Jekyll/Hexo to hugo, or from one theme to another. For example: #693 (PS: this update also break that issue) As I said, this is just a matter of preference, maybe we need a poll here. Or there's another solution, like making inline image clickable to zoom without gallery. |
Interesting! It's indeed annoying that different themes handle standard markdown behavior in different ways. I still think DoIt is doing a great job here as it follows the standard mardown as close as possible while still allowing extended syntax on top. This minimizes surprises for users that are used to standard markdown while still offering a lot of extra options. |
Describe the bug 描述你遇到的错误
Hi @HEIGE-PCloud, sorry to bother you again 🙂 I found another bug that is currently blocking me from migrating my blog to the DoIt theme.
In one of my blog posts, I'm using the following markdown content with the
LoveIt
theme:Note
The images do not specify a figure description. E.g. just
![red](pin_red.png)
but not![red](pin_red.png "Figure Description")
.This generates the following output:
The images are correclty inlined and can't be clicked. They as well do not appear in the lightbox image selection:
After migrating to the
DoIt
theme, the images are incorrectly recognized as figures which messes up the layout:They are as well showing in the lightbox image selection:
Expected behavior 期待的行为
Markdown images without a figure description should be inline and not recognized as figure.
Screenshots 屏幕截图
No response
Build Environment 构建环境
Preview Environment 预览环境
Firefox on Windows 11
Additional Information 补充信息
No response
The text was updated successfully, but these errors were encountered: