var TextSubMarkSpec = {
  attrs: {
    overridden: {
      "default": false
    }
  },
  parseDOM: [{
    tag: 'sub',
    priority: 150,
    getAttrs: function getAttrs(dom) {
      var _overridden = dom.getAttribute('overridden');
      return {
        overridden: _overridden === 'true'
      };
    }
  }, {
    style: 'vertical-align',
    getAttrs: function getAttrs(value) {
      return value === 'sub' ? {
        overridden: true
      } : null;
    }
  }],
  toDOM: function toDOM(mark) {
    return ['sub', {
      overridden: mark.attrs.overridden
    }, 0];
  }
};
export default TextSubMarkSpec;
import { bpfrpt_proptype_MarkSpec } from "./Types.js";