#156·markdoc

Improve image and link nodes

Author: mfix-stripeCreated Aug 1, 2022Updated Oct 30, 2024
Labelsenhancement
  • Update image syntax so that if it is on a line by itself, it is treated as a block, otherwise treat it as an inline element.
    • The default schema would render block-level images in a figure instead of a p, but this behavior would be possible to override in a custom node definition’s transform function
  • Update image syntax to allow passing additional attributes
    • E.g. ![alt](/href width=10 height=10 foo={arbitrary: "markdoc stuff"})
  • Test that the image/link syntax works with GitHub flavored Markdown, or we have a story for that.