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

Function onLinkCommand

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

Source from the content-addressed store, hash-verified

336 };
337
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 });

Callers 1

onKeyDownFunction · 0.85

Calls 1

replaceWordMethod · 0.80

Tested by

no test coverage detected