( noteContent: string, body: string, position: "top" | "bottom", )
| 81 | * extra newline, for tight single-snippet insertion.) |
| 82 | */ |
| 83 | export function insertBodyIntoNoteContent( |
| 84 | noteContent: string, |
| 85 | body: string, |
| 86 | position: "top" | "bottom", |
| 87 | ): string { |
| 88 | if (position === "bottom") { |
| 89 | return `${noteContent}\n${body}`; |
| 90 | } |
| 91 | |
| 92 | return insertAtNoteBodyStart(noteContent, `${body}\n`); |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Applies a template to an existing note (issue #526). Unlike |
no test coverage detected