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

Function replace

packages/shared/src/hooks/input/useMarkdownInput.ts:237–239  ·  view source on GitHub ↗
(_, { trailingChar })

Source from the content-addressed store, hash-verified

235 const textareaCommand = getCommand();
236 const temporary = getTemporaryUploadString(file.name);
237 const replace: GetReplacementFn = (_, { trailingChar }) => ({
238 replacement: `${!trailingChar ? '' : '\n\n'}${temporary}\n\n`,
239 });
240 const type = getCursorType(textarea);
241 const allowedType =
242 type === CursorType.Adjacent ? CursorType.Isolated : type;

Callers 7

PlusProductToggleFunction · 0.85
openCampaignFunction · 0.85
usePromotionModalFunction · 0.85
useStreakRecoverModalFunction · 0.85
useTopReaderModalFunction · 0.85
CoresLayoutFunction · 0.85
PlusHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected