Markdown images are an anti-pattern #5715
Replies: 2 comments 5 replies
-
Beta Was this translation helpful? Give feedback.
-
I'm sympathetic to the readability argument, but I don't think the juice is worth the squeeze here. Specifically, the 1.3 decision of parsing HTML tables comes from the fact that the native Pandoc Table AST element has features which are not actually supported by any of the native Markdown table input syntaxes. HTML input is really the cleanest way to consistently get features like rowspans, etc. In the case of images, the argument is completely different, and Pandoc markdown already supports arbitrary attributes (though I think without the leading colon in your suggestion). If we choose to support this feature, why would we then not support links? or other tags? I think the answer would be pretty unambiguously that it would make the overall Markdown reading experience of quarto documents worse. The HTML table feature exists so that libraries can provide table inputs to Quarto that can still be processed by Lua filters; the IMG suggestion would either:
That disjunction is negative for quarto on both sides, so I don't think it's a good feature to consider. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I found this recent blogpost quite convincing: it makes the case that
is in fact more legible, and better altogether than
I wonder, following Quarto v1.3's adoption of html table input for all formats, if the same idea would make sense for images? Of course the original markdown syntax would stay, for simple cases and back-compatibility, but the
<img>
flavour would also be available as a more robust/descriptive alternative.Beta Was this translation helpful? Give feedback.
All reactions