Fix cli custom heading anchors

This commit is contained in:
Terry Sutton committed 2022-11-23 10:12:18 -03:30
1 parent f7bf099021
commit b9f6a6d8ed
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ async function gen_v001(spec: CliSpec, dest: string) {
const commands = spec.commands.map((x) => {
const isChild = x.subcommands.length < 1
const heading = isChild ? `### ${x.summary} {#${x.id}}` : `## ${x.summary} {#${x.id}}`
const heading = isChild ? `### ${x.summary} [#${x.id}]` : `## ${x.summary} [#${x.id}]`
return {
...x,