stream-chat-react
Version:
React components to create chat conversations or livestream style chat
13 lines (12 loc) • 534 B
TypeScript
import type { Node } from 'unist';
export type ImageToLinkPluginOptions = {
getTextLabelFrom?: 'alt' | 'title' | 'url';
};
/**
* Converts image Markdown links ()
* to HTML <a href={url}>{url | title | alt}</a>
*
* By default, the anchor text content is the image url so that image preview can be generated / enriched on the server.
* @param getTextLabelFrom
*/
export declare function imageToLink({ getTextLabelFrom }?: ImageToLinkPluginOptions): (tree: Node) => void;