dotmd-cli 0.76.0 → 0.76.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/new.mjs +12 -2
package/package.json
CHANGED
package/src/new.mjs
CHANGED
|
@@ -101,7 +101,16 @@ const BUILTIN_TEMPLATES = {
|
|
|
101
101
|
'related_plans:',
|
|
102
102
|
'related_docs:',
|
|
103
103
|
].join('\n'),
|
|
104
|
-
body: (t, ctx) =>
|
|
104
|
+
body: (t, ctx) => {
|
|
105
|
+
// Same full-body shortcut the plan templates use, and for the same
|
|
106
|
+
// reason: a body that already authors `## Section` headings is a complete
|
|
107
|
+
// document, not section-content for one slot. Nesting it under `## Overview`
|
|
108
|
+
// produced a second `# Title` under the scaffold's, a placeholder summary
|
|
109
|
+
// line above the author's own opening, and the skeleton's trailing
|
|
110
|
+
// sections after a document that had already ended.
|
|
111
|
+
const authored = fullBodyShortcut(t, ctx?.bodyInput);
|
|
112
|
+
if (authored !== null) return authored;
|
|
113
|
+
return `
|
|
105
114
|
# ${t}
|
|
106
115
|
|
|
107
116
|
> One-line summary of what this doc covers.
|
|
@@ -116,7 +125,8 @@ ${ctx?.bodyInput?.trim() ?? ''}
|
|
|
116
125
|
|
|
117
126
|
## Related Documentation
|
|
118
127
|
|
|
119
|
-
|
|
128
|
+
`;
|
|
129
|
+
},
|
|
120
130
|
},
|
|
121
131
|
plan: {
|
|
122
132
|
description: 'Execution plan — build-up shape (Problem → Phases → Closeout) with phase status markers and Version History',
|