Description
Hi! Thanks for the awesome library.
I noticed that setMention supports an optional attributes?: Record<string, string> parameter, which is super useful. However, setImage currently doesn't support this.
Use Case
I need to distinguish between different types of images in my application (e.g., distinguishing a standard user-uploaded image from a custom system sticker/emoji, or adding custom layout metadata like align: center).
Having an attributes parameter in setImage would allow us to pass custom metadata seamlessly.
Proposed API
setImage: (
src: string,
width: number,
height: number,
attributes?: Record<string, string> // <-- Add this
) => void;
Description
Hi! Thanks for the awesome library.
I noticed that
setMentionsupports an optionalattributes?: Record<string, string>parameter, which is super useful. However,setImagecurrently doesn't support this.Use Case
I need to distinguish between different types of images in my application (e.g., distinguishing a standard user-uploaded image from a custom system sticker/emoji, or adding custom layout metadata like
align: center).Having an
attributesparameter insetImagewould allow us to pass custom metadata seamlessly.Proposed API