mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-06 03:38:39 +00:00
Fix missing metrics for space (0x20) and no-break space (0xa0) (#2298)
* Fix missing metrics for space (0x20) and no-break space (0xa0) * Update a screenshot * Update font submodule * Add a regression test
This commit is contained in:
Submodule submodules/katex-fonts updated: 5f3a2a392a...56e79c93c8
@@ -1737,9 +1737,9 @@ describe("An HTML font tree-builder", function() {
|
|||||||
expect(markup).toContain("<span class=\"mord\">T</span>");
|
expect(markup).toContain("<span class=\"mord\">T</span>");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should render \\textbf{R} with the correct font", function() {
|
it("should render \\textbf{R } with the correct font", function() {
|
||||||
const markup = katex.renderToString(r`\textbf{R}`);
|
const markup = katex.renderToString(r`\textbf{R }`);
|
||||||
expect(markup).toContain("<span class=\"mord textbf\">R</span>");
|
expect(markup).toContain("<span class=\"mord textbf\">R\u00a0</span>");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should render \\textmd{R} with the correct font", function() {
|
it("should render \\textmd{R} with the correct font", function() {
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Reference in New Issue
Block a user