MCPcopy Create free account
hub / github.com/dailydotdev/apps / onLinkPasteCommand

Function onLinkPasteCommand

packages/shared/src/hooks/input/useMarkdownInput.ts:341–342  ·  view source on GitHub ↗
(type, props)

Source from the content-addressed store, hash-verified

339 getCommand().replaceWord(getLinkReplacement, onUpdate);
340 const onLinkPaste = (pastedLink: string) => {
341 const onLinkPasteCommand: GetReplacementFn = (type, props) =>
342 getLinkReplacement(type, { ...props, url: pastedLink });
343
344 return getCommand().replaceWord(onLinkPasteCommand, onUpdate);
345 };

Callers

nothing calls this directly

Calls 1

getLinkReplacementFunction · 0.90

Tested by

no test coverage detected