"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const boldMark = require("./boldMark.cjs");
const CustomMarkPlugin = require("../../../baseEditor/CustomMarkPlugin.cjs");
const withBold = (editor) => {
  editor.registerMark(boldMark.boldMarkPlugin);
  editor.htmlDeserializer.registerPlugin(
    CustomMarkPlugin.createMarkHtmlDeserializer(
      boldMark.boldMark,
      (el) => el.nodeName === "STRONG" || el.nodeName === "B" && !el.id.startsWith("docs-internal-guid"),
      (el) => ["italic", "oblique"].includes(el.style.fontWeight)
    )
  );
  return editor;
};
exports.withBold = withBold;
//# sourceMappingURL=withBold.cjs.map
