MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / composeBody

Function composeBody

apps/desktop/src/cli/commands/capture.ts:63–68  ·  view source on GitHub ↗
(title: string, body: string, tags: string[])

Source from the content-addressed store, hash-verified

61}
62
63function composeBody(title: string, body: string, tags: string[]): string {
64 const heading = `# ${title}\n\n`
65 const tagLine = tags.length > 0 ? tags.map((t) => `#${t}`).join(' ') + '\n\n' : ''
66 const trimmed = body.replace(/\n+$/g, '')
67 return `${heading}${tagLine}${trimmed}\n`
68}

Callers 1

cmdCaptureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected