Skip to content

Commit

Permalink
chore: escape titles
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Mar 23, 2024
1 parent cfa7743 commit 8515b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/docsgen/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function renderExamplesSection(examples: CliExample[], sectionTitle?: string, lo
function renderOption(optionName: string, option: CliOptionDefinition): string | undefined {
if (option.hidden) return;

const commandOption = [`### --${optionName} {#-${optionName}}`];
const commandOption = [`### \`--${optionName}\` {#-${optionName}}`];
if (option.description) commandOption.push(`description: ${sanitizeDescription(option.description)}`);

if (option.demandOption === true) {
Expand Down

0 comments on commit 8515b31

Please sign in to comment.