Skip to content

Commit

Permalink
Only force number sections on if it isn’t explicitly set
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonstyle committed May 4, 2022
1 parent 29ffff9 commit a6dab9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/command/render/crossref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ export function crossrefFilterParams(
);
}
// implies number-sections
params[kNumberSections] = true;
if (defaults?.[kNumberSections] === undefined) {
params[kNumberSections] = true;
}
}

params[option] = value;
}
});
Expand Down

0 comments on commit a6dab9a

Please sign in to comment.