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

Function onLinkPaste

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

Source from the content-addressed store, hash-verified

338 const onLinkCommand = () =>
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 };
346
347 const onMentionCommand = async () => {
348 const { replacement } = await getCommand().replaceWord(

Callers 1

onPasteFunction · 0.85

Calls 1

replaceWordMethod · 0.80

Tested by

no test coverage detected