"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.markFractionBaseSuperscripts = void 0;

var markFractionBaseSuperscripts = function markFractionBaseSuperscripts() {
  document.querySelectorAll('.mq-supsub.mq-sup-only').forEach(function (supsub) {
    var prev = supsub.previousElementSibling;

    if (prev && prev.classList.contains('mq-non-leaf') && prev.querySelector('.mq-fraction')) {
      supsub.classList.add('mq-after-fraction-group');
    } else {
      supsub.classList.remove('mq-after-fraction-group');
    }
  });
};

exports.markFractionBaseSuperscripts = markFractionBaseSuperscripts;
//# sourceMappingURL=utils.js.map