Skip to content

Commit 938afa1

Browse files
committed
code tweak - use constants for mermaid options
This ease the search of option used throughout the codebase.
1 parent 8428298 commit 938afa1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/handlers/mermaid.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ mermaid.initialize(${JSON.stringify(mermaidOpts)});
329329
svg,
330330
options,
331331
undefined,
332-
new Set(["fig-width", "fig-height", "mermaid-format"]),
332+
new Set([kFigWidth, kFigHeight, kMermaidFormat]),
333333
);
334334
}
335335
};
@@ -370,7 +370,7 @@ mermaid.initialize(${JSON.stringify(mermaidOpts)});
370370
)),
371371
options,
372372
undefined,
373-
new Set(["fig-width", "fig-height", "mermaid-format"]),
373+
new Set([kFigWidth, kFigHeight, kMermaidFormat]),
374374
);
375375
}
376376
};
@@ -414,7 +414,7 @@ mermaid.initialize(${JSON.stringify(mermaidOpts)});
414414
]),
415415
options,
416416
attrs,
417-
new Set(["mermaid-format"]),
417+
new Set([kMermaidFormat]),
418418
);
419419
};
420420

0 commit comments

Comments
 (0)