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
figureinstead of ap, but this behavior would be possible to override in a custom node definition’s transform function
- The default schema would render block-level images in a
- Update image syntax to allow passing additional attributes
- E.g.

- E.g.
- Test that the image/link syntax works with GitHub flavored Markdown, or we have a story for that.
Source: markdoc/markdoc