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

Function onLinkPaste

packages/shared/src/hooks/input/useMarkdownInput.ts:338–343  ·  view source on GitHub ↗
(pastedLink: string)

Source from the content-addressed store, hash-verified

336 const onLinkCommand = () =>
337 getCommand().replaceWord(getLinkReplacement, onUpdate);
338 const onLinkPaste = (pastedLink: string) => {
339 const onLinkPasteCommand: GetReplacementFn = (type, props) =>
340 getLinkReplacement(type, { ...props, url: pastedLink });
341
342 return getCommand().replaceWord(onLinkPasteCommand, onUpdate);
343 };
344
345 const onMentionCommand = async () => {
346 const { replacement } = await getCommand().replaceWord(

Callers 1

onPasteFunction · 0.85

Calls 1

replaceWordMethod · 0.80

Tested by

no test coverage detected