import {isElementEmpty, onlyInlineContent} from "./utils.mjs"; export const ol = { content: "(list_item | list_item_text)+", managed: {attributes: ["start"]}, group: "block", attrs: {order: {default: 1}}, parseDOM: [{tag: "ol", getAttrs: el => ({order: el.hasAttribute("start") ? Number(el.start) : 1})}], toDOM: node => node.attrs.order === 1 ? ["ol", 0] : ["ol", {start: node.attrs.order}, 0] }; /* -------------------------------------------- */ export const ul = { content: "(list_item | list_item_text)+", group: "block", parseDOM: [{tag: "ul"}], toDOM: () => ["ul", 0] }; /* -------------------------------------------- */ /** * ProseMirror enforces a stricter subset of HTML where block and inline content cannot be mixed. For example, the * following is valid HTML: * * * But, since the contents of the
  • would mix inline content (the text), with block content (the inner