diff --git a/src/buildMathML.js b/src/buildMathML.js index 4bde4934..03be3be3 100644 --- a/src/buildMathML.js +++ b/src/buildMathML.js @@ -93,7 +93,7 @@ export const getVariant = function( if (font === "mathit") { return "italic"; } else if (font === "boldsymbol") { - return "bold-italic"; + return group.type === "textord" ? "bold" : "bold-italic"; } else if (font === "mathbf") { return "bold"; } else if (font === "mathbb") { diff --git a/test/__snapshots__/mathml-spec.js.snap b/test/__snapshots__/mathml-spec.js.snap index 9f4c3401..b4852c04 100644 --- a/test/__snapshots__/mathml-spec.js.snap +++ b/test/__snapshots__/mathml-spec.js.snap @@ -407,7 +407,7 @@ exports[`A MathML builder should render boldsymbol with the correct mathvariants x - + 2 @@ -416,10 +416,10 @@ exports[`A MathML builder should render boldsymbol with the correct mathvariants ω - + Ω - + ı