mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-13 15:08:39 +00:00
Fix wide character spacing (#1371)
* Fix wide character spacing Fixes issue #1360 * Add test * Use concat
This commit is contained in:
@@ -238,7 +238,8 @@ const makeOrd = function<NODETYPE: "spacing" | "mathord" | "textord">(
|
||||
if (value.charCodeAt(0) === 0xD835) {
|
||||
// surrogate pairs get special treatment
|
||||
const [wideFontName, wideFontClass] = wideCharacterFont(value, mode);
|
||||
return makeSymbol(value, wideFontName, mode, options, [wideFontClass]);
|
||||
return makeSymbol(value, wideFontName, mode, options,
|
||||
classes.concat(wideFontClass));
|
||||
} else if (fontOrFamily) {
|
||||
let fontName;
|
||||
let fontClasses;
|
||||
|
Reference in New Issue
Block a user