writtenPart
What people wrote in a draft (or a notes file): everything above the marker, without the heading tcm writes.
import { MARKER } from "#codebase/tcmts/cli/releases"; export function writtenPart(text: string): string { const above = text.includes(MARKER) ? text.slice(0, text.indexOf(MARKER)) : text; return above.replace(/^## .*\n/, "").trim(); }