Added support for bold italic symbols (#1011)

* added support for \boldsymbol

* added \boldsymbol tests

* added \boldsymbol screenshots

* added \bm, snapshot, updated screenshots

* updated snapshot for \boldsymbol

* properly display \imath and 2 in boldsymbol

* implemented \boldsymbol for +

* fix typo, remove boldsymbolLetters hardcode

* make comment about using Main-Bold more general

* fixed trailing space CI error
This commit is contained in:
Alexander Terenin
2017-12-12 20:09:52 -08:00
committed by Kevin Barabash
parent 36ca9beaa7
commit cf23517499
9 changed files with 104 additions and 9 deletions

View File

@@ -75,4 +75,9 @@ describe("A MathML builder", function() {
expect(getMathML(`x_{y_{\\mathchoice{D}{T}{S}{${cmd}}}}`))
.toMatchSnapshot();
});
it("should render boldsymbol with the correct mathvariants", () => {
expect(getMathML(`\\boldsymbol{Ax2k\\omega\\Omega\\imath+}`))
.toMatchSnapshot();
});
});