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

Function onLinkCommand

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

Source from the content-addressed store, hash-verified

334 };
335
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 });

Callers 1

onKeyDownFunction · 0.85

Calls 1

replaceWordMethod · 0.80

Tested by

no test coverage detected