Skip to content

Commit

Permalink
fix: set default for enumerated
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Nov 20, 2024
1 parent 9239e42 commit 728b252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/myst-ext-exercise/src/exercise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const exerciseDirective: DirectiveSpec = {
if (data.options?.nonumber !== undefined) {
enumerated = !data.options.nonumber as boolean;
} else {
enumerated = data.options?.enumerated as boolean;
enumerated = (data.options?.enumerated as boolean) ?? true;
}
const exercise: GenericNode = {
type: 'exercise',
Expand Down
2 changes: 1 addition & 1 deletion packages/myst-ext-proof/src/proof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const proofDirective: DirectiveSpec = {
if (data.options?.nonumber !== undefined) {
enumerated = !data.options.nonumber as boolean;
} else {
enumerated = data.options?.enumerated as boolean;
enumerated = (data.options?.enumerated as boolean) ?? true;
}
const proof = {
type: 'proof',
Expand Down

0 comments on commit 728b252

Please sign in to comment.