Skip to content

Commit dec9d2a

Browse files
committed
Fixes for prettier
1 parent b376402 commit dec9d2a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ts/input/tex/mhchem/MhchemConfiguration.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ export const MhchemUtils = {
5757
* @param {string} arrow The arrow name (without the backslash).
5858
* @returns {string} The mhchem arrow name, if there is one.
5959
*/
60-
export const MhchemReplacements = new Map<string | ((match: string, arrow: string) => string), RegExp>([
60+
export const MhchemReplacements = new Map<
61+
string | ((match: string, arrow: string) => string),
62+
RegExp
63+
>([
6164
[
6265
'\\mhchemx$3[$1]{$2}',
6366
/\\underset{\\lower2mu{(.*?)}}{\\overset{(.*?)}{\\long(.*?)}}/g,
@@ -78,7 +81,9 @@ export const MhchemReplacements = new Map<string | ((match: string, arrow: strin
7881
[
7982
(match: string, arrow: string) => {
8083
const mharrow = `mhchem${arrow}`;
81-
return mhchemChars.lookup(mharrow) || mhchemMacros.lookup(mharrow) ? `\\${mharrow}` : match;
84+
return mhchemChars.lookup(mharrow) || mhchemMacros.lookup(mharrow)
85+
? `\\${mharrow}`
86+
: match;
8287
},
8388
/\\(x?(?:long)?(?:left|right|[Ll]eftright|[Rr]ightleft)(?:arrow|harpoons))/g,
8489
],

0 commit comments

Comments
 (0)