@shadow-garden/bapbong-model
The ProseMirror document schema for bapbong, plus list-numbering helpers.
This is the canonical in-memory document — importDocx produces it, the layout
engine consumes it, and the hidden editor edits it.
- Scope:
scope:model - Depends on:
prosemirror-model
What it provides
schema— the main documentSchema:doc(with undoableattrsnumbering/sections/comments),paragraph,text,image,table,hardBreak, …; marksstrong,em,underline,strike,link,color,highlight,vertAlign,footnote { num },comment { ids }.commentSchema— a tiny schema for comment bodies:doc/paragraph/text+ an inlinementionatom ({ id, label }) withleafText/toDOM.createNumberingCounter(defs)— resolves live list markers (decimal, bullet, multilevel) fromdoc.attrs.numbering.- Types:
BapbongSchema,CommentSchema,Align.
Build / test
pnpm nx build @shadow-garden/bapbong-model
pnpm nx test @shadow-garden/bapbong-model