| 12219 | * handling them itself. |
| 12220 | */ |
| 12221 | const htmlBuilderDelegate = function htmlBuilderDelegate(group, options) { |
| 12222 | const base = group.base; |
| 12223 | |
| 12224 | if (!base) { |
| 12225 | return null; |
| 12226 | } else if (base.type === "op") { |
| 12227 | // Operators handle supsubs differently when they have limits |
| 12228 | // (e.g. `\displaystyle\sum_2^3`) |
| 12229 | const delegate = base.limits && (options.style.size === Style$1.DISPLAY.size || base.alwaysHandleSupSub); |
| 12230 | return delegate ? htmlBuilder$8 : null; |
| 12231 | } else if (base.type === "accent") { |
| 12232 | return utils.isCharacterBox(base.base) ? htmlBuilder : null; |
| 12233 | } else if (base.type === "horizBrace") { |
| 12234 | const isSup = !group.sub; |
| 12235 | return isSup === base.isOver ? htmlBuilder$7 : null; |
| 12236 | } else { |
| 12237 | return null; |
| 12238 | } |
| 12239 | }; // Super scripts and subscripts, whose precise placement can depend on other |
| 12240 | // functions that precede them. |
| 12241 | |
| 12242 | |