import { DOMSerializer } from "./../../pm/model.js";
function getHTMLFromFragment(fragment, schema) {
  const documentFragment = DOMSerializer.fromSchema(schema).serializeFragment(fragment);
  const temporaryDocument = document.implementation.createHTMLDocument();
  const container = temporaryDocument.createElement("div");
  container.appendChild(documentFragment);
  return container.innerHTML;
}
export {
  getHTMLFromFragment
};
//# sourceMappingURL=get-html-from-fragment.js.map
