var LinkMarkSpec = {
  attrs: {
    href: {
      "default": null
    },
    rel: {
      "default": 'noopener noreferrer nofollow'
    },
    target: {
      "default": 'blank'
    },
    title: {
      "default": null
    }
  },
  inclusive: false,
  parseDOM: [{
    tag: 'a[href]',
    getAttrs: function getAttrs(dom) {
      var href = dom.getAttribute('href');
      var target = href && href.indexOf('#') === 0 ? '' : 'blank';
      return {
        href: dom.getAttribute('href'),
        title: dom.getAttribute('title'),
        target: target
      };
    }
  }],
  toDOM: function toDOM(node) {
    return ['a', node.attrs, 0];
  }
};
export default LinkMarkSpec;
import { bpfrpt_proptype_MarkSpec } from "./Types.js";