Repository navigation
Releases
v0.141.0
Upgrade path: 0.140 → 0.141. A text or
richtext field declaring multiline: fails to load as
quill::field_parse_error, its hint naming shape:, and schema() and the
transform schema carry shape alone, without multiline;
QUILLMARK_MULTILINE_KEY is removed. An unquoted value whose text is not the
number YAML reads it as, such as 0012, 1.50 or +15551234567, is held as
the text written, through aliases and merges too, so a text field prints
0012; a number or integer field reads the number it did. quillmark_pdf::stamp
returns Stamped { pdf, warnings } and warns pdf::widgets_untagged when a
tagged base's structure tree keeps the widgets out, and quillmark_docx::lower's
CODE_* constants are removed in favour of notice::Code. The repository and
packages move to github.com/birdorbs.
- feat(core)!: remove the legacy multiline spelling of a text field's shape
- fix(core)!: a value YAML reads as a number keeps the text written, so a text field holds 0012
- fix(core): a numeric spelling follows aliases and merges, and a shadowed one stays out
- fix(core): a key a mapping holds itself shadows the spelling a merge brings
- feat(pdf)!: warn pdf::widgets_untagged when a tagged base's tree keeps the widgets out
- refactor(docx)!: lower's CODE_* constants are gone
- chore(deps): one toml and one comemo in the graph
- chore: point repository URLs at birdorbs
v0.140.0
Upgrade path: 0.139 → 0.140. Word is a
fourth output format: docx renders any Typst quill, unchanged, as a Word file
laid out by Word, with a docx:: warning wherever it carries less than the
PDF, and qm.hints, one function per hint kind, lets a quill give Word live
numbering, paragraph styles, keeps and font substitutes; a label whose printed
text is not the number Word counts stays text with docx::label_mismatch, and
a hint value of the wrong type fails the compile. The new quillmark-docx
crate writes it. A quill declares main and each card kind as peers of one
schema: block, and quill.schema is keyed by kind with no card_kinds
level; a top-level main: or card_kinds: fails as quill::unknown_section.
ui.layout: flat and the retired spellings fail to load, and an acroform quill
reads its field spec from Form.yaml alone.
- refactor(typst): qm.hints is one function per hint kind
- fix(typst): a hint value of the wrong type fails the compile, and a list hint states no version
- fix(docx): a table's last row keeps its height when its cells are empty
- feat(docx): check a label hint against its printed text, so
valuegoes - fix(docx): a clipped justified paragraph stays text between its edges
- fix(docx): an image inside a box in a line of text is placed
- fix(docx): a ligature is measured as the letters Word sets, so a tight box or cell holds its line
- fix(docx): a table row is as tall as Typst sets it, and an empty cell adds no height
- fix(docx): spacing Typst sets between runs is a space or a tab, and a stack's lines keep their breaks
- fix(docx): letter spacing is carried as the run's character spacing
- feat(docx): the Word file carries the language its text is set in
- fix(docx): a drawn rule or filled box anchored to the page is reported
- fix(docx): a "Page N of M" footer keeps its page field on the last page, and an unfielded page number is reported
- test(docx): a document the probes would move is read without them
- fix(docx): a page that sets its own foreground keeps its margins
- fix(docx): a label Word does not count keeps no list number of its own
- test(docx): the hinted numbered_letter face raises no font_not_embedded
- feat(docx): a hinted font with no Word clone is named as its alt
- fix(docx): keep the space above a paragraph inside a table cell
- feat(core)!: a quill declares main and each card kind as peers of one schema block
- test(docx): snapshot only what lowering decides from a block's neighbours
- test(docx): pin where a keep, a table's gap and a contents entry's space resolve
- refactor(docx): name the reader's brackets by an enum, not by string
- refactor(docx): read a table cell and a grid cell in one place
- refactor(docx): settle what a block asks of its neighbours in one pass over a flat list
- refactor(docx): one notice code per loss, with its message, tallied in one place
- refactor(docx): read sections, page numbers and strides once, outside the walk
- refactor(docx): split lowering into a module per concern
- refactor(docx): one item push and one assumed page setup in the reader
- refactor(docx): build a nested scope's context from the default
- refactor(docx): one raised test, and a node chain that borrows its kinds
- refactor(docx): read the page of the block before in one place
- refactor(docx): make every fixed-height paragraph with spacer
- refactor(docx): map a layout number format to Word's in one place
- refactor(docx): find a table's own cells in one place
- test(docx): pin the lowered Word model of each case with a snapshot
- fix(docx): a table gap that goes to the level above leaves later ones to settle
- docs(docx): one line in a block with no paragraph break keeps a left indent
- fix(docx): a content-sized column grows only by what its widest line lacks
- fix(docx): a content-sized column has a twip per character to spare
- fix(docx): a break to an odd or even page starts a section of that parity
- fix(docx): form fields, in-flow columns and right-to-left text are reported
- fix(docx): a hint around what it cannot apply to raises docx::hint_unchecked
- fix(docx): a section that changes only its chrome mid-flow starts on the same page
- fix(docx): a section with no header or footer writes an empty one
- fix(docx): an anchor paragraph forces a page break only for a page with no flow
- fix(docx): widow and orphan control is on for every paragraph
- fix(docx): a paragraph Typst put at a page top keeps its siblings' space before
- fix(docx): a one-line paragraph takes its indent kind from where Typst starts it
- fix(docx): an equation is a picture, and a superscript joins its line
- fix(docx): a content-sized column is as wide as its text set without kerning
- fix(docx): two tables in a row keep the gap between them and stay two tables
- fix(docx): an inline raw line stays in its paragraph
- feat(docx): block quotes, captions, term lists and raw blocks as Word has them
- docs(docx): the Word section says what the export does and what it does not yet
- fix(docx): hyperlink targets are URIs, script links are plain text, and the test-only zip reader leaves the crate
- fix(docx): a table's gap is to its first baseline, mirrored ink is a picture, notices once, internal links reported
- fix(docx): a picture of ink is bounded by the page, and a failed one is reported
- fix(typst): a failed session update leaves the Word export of the served document
- fix(docx): an em size with no block around it resolves at the page's text size
- fix(docx): the newline probe no longer keeps a space before a line break
- fix(docx): the footnote rule is left to Word and never reaches a header
- fix(docx): an outline's leader is its tagged repeat, and the number follows it
- fix(docx): a page with no flow anchors its own objects
- fix(docx): a section per page numbering, with the page number as a field
- fix(docx): text no element tags is a paragraph per line, with a notice
- fix(docx): a heading whose show rule breaks the page keeps its style
- fix(docx): a block starts its own paragraph, and an align bracket aligns it
- feat(docx): an outline is a TOC field holding the PDF's entries
- feat(typst): quill hints for live numbering, roles, tabbed lines, chrome, keeps and faces
- fix(docx): measure pitch, header distance, gutter, table edges and cell fields instead of assuming them
- fix(docx): carry list formats, footnote numbers, forced breaks and pictured ink from Typst's own fields
- feat(docx): lower the layout tree to Word paragraphs, lists, tables and chrome
- feat(typst): read the probed compile into a layout tree
- feat(typst): the Word export reads a probed second compile
- feat(typst)!: Word export as the fourth output format
- feat(docx): a typed Word model and its deterministic writer
- perf(content): convert a narrow change on a narrow value without a run
- fix(core): number YAML error lines as the document does
- fix(typst): the helper's manifest declares Typst 0.15.0 (#2495)
- Add an issue form for what Quill.yaml cannot declare (#2490)
- docs: link the playground at play.quillmark.dev
- refactor(core)!: ui.layout: flat, the retired spelling messages and the acroform legacy spec names are gone
- fix(pdf): an acroform stamp renders on every valid tagged base
- docs: state the four pre-1.0 promises in README Status
v0.139.0
Upgrade path: 0.138 → 0.139. The typed
writer refuses a member a typed dictionary's properties, or every world of a
variant-bearing enum, leaves undeclared, as edit::unknown_field at the
member, where it stored a value nothing drew or rendered. A member the stored
value already carries, equal, still lands.
- fix(writer)!: the typed writer refuses a member its group or variant leaves undeclared (#2487)
v0.138.0
Upgrade path: 0.137 → 0.138. A newline
inside a Markdown paragraph is a line break, where it was a space, so a body
hard-wrapped in its source prints its wraps. A text or richtext field
declares shape: line | lines | blocks where it declared multiline, which
loads one more release with a quill::deprecated_multiline warning; shape: lines on a richtext is new, formatted lines where block syntax prints as
typed. YAML reads only the 1.2 Core casings as booleans and nulls, so tRue
is text. isLines and importMarkdown(markdown, shape) judge and read a
value as a field of that shape does, and quillmark_content::view::layout
and the line form's Markdown adapters are removed.
- chore(deps): hayro 0.8 (#2484)
- chore(deps)!: serde-saphyr 2.1, where only YAML 1.2 Core casings read as booleans and nulls (#2482)
- fix(wasm): importMarkdown's shape is optional in its TypeScript signature
- feat(bindings): isLines, and importMarkdown reads a string as a shape does
- docs(migrations): the 0.137 → 0.138 guide names the removed view::layout
- fix(content): a line opening an HTML block in a field of lines reads as text
- chore(deps): Bump 6 of the cargo group with wasm-bindgen-cli 0.2.130 (#2479)
- chore(deps-dev): Bump vitest in /crates/bindings/wasm in the npm group (#2453)
- chore(deps): Bump the actions group across 1 directory with 2 updates (#2407)
- test(wasm): a line break exports as a newline
- feat(core)!: a text field declares a shape, and a newline is a line break
- refactor(content)!: the line form's markdown adapters are gone
- test(content): the export's tests read the model
- test(content): the import walk's tests read the model
- refactor(typst): the backend's tests build the model
- refactor(core): cards and their tests hold the model, not the line form
- refactor(content): the markdown import walk builds the model
- refactor(content): the markdown import walk lives under markdown
- refactor(content): the export probes read a model import
- fix(content): an escaped
<p>in an HTML table cell reads as text - refactor(content)!: quillmark_content::view::layout is removed
- refactor(content): renderers read a table's layout off the island
- refactor(content): marks and tables normalize on the model
- refactor(content): the bidi and admit character rules stay crate-private
- refactor(content): the markdown codec's own modules live under markdown
- refactor(content): anchors and the revise carry stand on the model alone
- refactor(content): IslandType lives in model and the table layout readers in table
- refactor(core): resolve schema addresses through one QuillConfig::field_at
- feat(typst): form-field widgets carry a /TU tooltip
v0.137.0
Upgrade path: 0.136 → 0.137. Acroform
boxes with an option: stamp as one radio field whose value is the enum value,
and bound fields naming one schema_field stamp as one field named by the
first. A write now mints a new block id from a digest of the value it lands on
(b and six base32 characters), so a retired id never returns; block ids are
opaque, and import still numbers them positionally. blocks and applyBlocks
read and edit a content value's blocks by id.
- test(content): drop the removed tagged read from the block id speed probe
- refactor(content): leave the model-facing tagged read to the host
- test(bindings): a minted block id is a digest, not the next number
- feat(content): a write mints a new block id from a digest of the value it lands on
- feat(wasm): blocks and applyBlocks
- feat(content): read blocks by id and edit them with replace, insertAfter and delete ops
- feat(typst): export PDF/UA-1 wherever the document conforms
- feat(pdf): tag stamped widgets into a tagged base's structure tree
- ci(release): PyPI publishes on every release
- fix(content): a fence under searches the lines after its own for its closer
- docs(migrations): add the 0.136 → 0.137 guide for acroform radio groups and shared fields
- feat(acroform)!: boxes binding one schema field stamp as one field, option boxes as a radio group
- feat(docs): publish a JSON Schema for Quill.yaml
- chore(content): keep the anchor proptest regressions, drop a local one
- feat(content): read HTML formatting tags and reference links in table cells
- fix(typst): a font run stays reachable to a plate walking content
- test: share the AcroForm field walk and collapse the hit-tolerance openers
- test(core): let the authoring fixed point name a mark markdown cannot write
- fix(fixtures): alt text on usaf_memo seals, no empty status_report headings
- refactor(core): TypedReader::at reads the main card or a card through one CardReader
v0.136.0
- feat(content,core)!: an anchor id opening with ~ is transient and never stored
- docs(migrations): add the 0.135 → 0.136 guide for the dropped Rust API
- docs(prose): collapse the canon into one invariants page
- refactor(core,content)!: drop public API no consumer calls
- fix(content): a revise imports every row of the tables its value holds
- refactor(core,content)!: drop the export::lost_construct helper nothing produces
- docs(canon): the lenient stored read stays within a major
- chore(python): drop the unreferenced quill_demo example
- test: build content in the model encoding outside the v1-row tests
- ci(canon): fail a canon file path that resolves to nothing
- docs(canon): true rotted paths, names and claims in CONVERT, SCHEMAS, PLATE_DATA and PREVIEW
- docs(content): the line form's module docs name who reads it
- refactor(content,core): drop dead line-form and hidden CardMut helpers
v0.135.0
Upgrade path: 0.134 → 0.135. Core is
single-writer: a write under a stale base throws edit::stale_base where it
rebased, and writers that answer late merge through @quillmark/collab.
Saves move to quillmark/document@0.135.0, which a 0.134 build refuses, so
every reader of a store upgrades before any writer. Breaks no type checker
reports: a write refuses a Content that normalize would rewrite, an
anchor step naming a held id needs move: true, and a conformed text
field stores as content spelling codec: "plain", so its stored value and
hash change.
Single writer
- refactor(core)!: core is single-writer; a stale base refuses. A
write's base is the hash its writer read. A value that hashes otherwise
refuses withedit::stale_base, carryingcurrent, and writes nothing.
The rebase engine (quillmark_content::rebase), the per-card change log,
read_at, the structural document merge andReceipt::rebasedare gone,
andedit::rebase_conflictis retired. The writer's revise and
reviseDocumenttake{ baseHash }alone in WASM andbase_hash=in
Python;baseMarkdownis gone.EditError::StaleBase(StaleBase)and
BoundParseError::StaleBasecarry the refusal. - refactor!: collab policy leaves core. Core says which repair
write-backs land twice (Repair::inserts) and leaves who writes one back
to@quillmark/collab. TheDeltatype leaves@quillmark/wasm, since no
verb takes or answers one.
Ids
- feat(content)!: a write mints the ids its change leaves open. A record
a change puts may carry a placeholder id opening with?, which the write
fills and names in the receipt's newminted; a value holding such an id
is invalid. Themintmodule andids::is_placeholderare new. - feat(core)!: a write mints from the value it lands on, never from the
card's history of writes, so one write over equal values stores equal
bytes on every card. - feat(core)!:
addCardandunchecked.insertCardanswer the placed
card's$id:CardAdded { id, warnings }in Rust and WASM, a dict in
Python. - fix(content): a mint past an id at the top of
u64takes the lowest
number free under its prefix, where it overflowed.
Structural edits
- feat(wasm)!: the structural edits are
Documentverbs.
doc.splitBlock,joinBlocks,deleteRange,indent,outdentand
wrapwrite and answer aReceipt, refusing a stalebase, where module
functions answered aChange.diffRange(before, after, { from, to })
lowers the range a ProseMirrorReplaceStepnames as one exact splice, and
doc.blockAt(addr, offset)answers the block at an offset. In Rust,
gesturesisstructural,GestureisStructuralEdit,Edit::Gesture
isEdit::Structural, andCardgains the verbs,block_atand
diff::diff_range.
One spelling per value
- feat(content)!: a write takes a
Contentonly in its canonical form.
Every verb taking one butnormalizerefuses a valuenormalizewould
rewrite (Invariant::NotCanonical). A stored row reads leniently through
Content::from_value_lenient, warningcontent::noncanonical_readat each
rewritten value so the host stores it again. - feat(content)!: a value, change or step holding a key its shape does
not define is refused (ParseError::UnknownKey), a remove step holding
its set twin's keys included, and a built-in member'sattrshold only the
entries it names. Islandpropsandx-attrsstay open; a stored value
drops the key and warns. - feat(content)!: a table cell and a footnote's note are each one
paragraph, its lines parted byU+2028.<br><br>and a<p>boundary
in a cell import as one hard break, a value holding a\nthere is
refused (Invariant::BreakInCell), and a stored read andrepairjoin
one. - feat(core)!: every write on
Documentvalidates. A content value in a
field, at any depth, decodes and stores canonical as a body's does, and an
invalid one throwsedit::field_decode. The writes no schema checks move
underunchecked:doc.unchecked.storeFieldandinsertCardin WASM,
doc.unchecked.store_fieldandinsert_cardin Python,doc.unchecked()
in Rust.
Text fields
- feat(core)!: a
textfield is stored as content spellingcodec: "plain", so it holds comment anchors and ids, andtoMarkdownwrites
its literal text.getStoredanswers the object andreader.getthe
literal text.field_hashhashes the content,Invariant::NotPlain
refuses a plain value holding a mark, island, container or block other
than a paragraph, andreattachanswers a whole-field selector as
reattached, so a comment can sit on a field of any type. - fix(content)!: the plain codec spells a paragraph break as a blank
line and a hard break as a lone\n, both ways. - fix(core): a typed revise of a
textfield still at rest as a string
answers one splice over its literal text.
Anchors
- feat(content)!: an
anchorstep places or moves, never both.
{id, start, end}refuses an id the value holds (ApplyError::AnchorHeld),
andmove: truemoves the held one.AnchorStep::SetisPlaceand
Move. - feat(content)!:
movedAnchorsnames every surviving anchor a write
moved, a point included, each with areason:position,blockor
context. - feat(content)!: anchor contexts read off the stored text: a selector's
quote,prefixandsuffixspell a hard breakU+2028and a cell's
block break one\n.reattachplaces a selector in either spelling. - fix(content): a revise carries anchors through one word diff. Word
tokens follow UAX #29 boundaries with each punctuation mark its own, a
replaced run's lines pair by greatest similarity, and a quote moves within
text the revise itself inserted.
Revise and markdown
- feat!: the body is an address.
writer.revise(addr, text, opts)
replacesreviseBodyandreviseField(Pythonwriter.revise(text, field=None, card=None)),reader.getandgetContentread the body with
no field, and Rust's typed writers and readers take aTargetin
revise,hash_of,getandget_content. - feat(core)!: the writer's revise answers the content
Receipt,
{ applied, hash, droppedAnchors, movedAnchors, warnings, minted }.
Revisedis gone:mapPosmaps a position throughapplied, and
reattachtakes each path'sapplied. - feat(wasm,python)!: one markdown door each way.
Document.parse
replacesfromMarkdown, anddoc.toMarkdown(addr?, { annotated })
replacestoAnnotatedMarkdown,annotatedAt,annotatedand
bodyMarkdown. An annotated export answers{ markdown, anchors }, and
DocumentRevised.dropped_anchorsholds the selectorsreattachtakes.
Python gainsimport_markdown,export_markdown,normalize,
is_inlineandis_plain. - feat(core)!: every revise is the content
revise. A typed
reviseFieldorreviseDocumentrelocates a moved quote of four
characters or more, atextfield diffs by word, a typedrichtext
revise refuses to drop anx-island, andreviseDocumentkeeps a value
whose markdown would not validate, warningedit::content_applyat its
path. - fix(content): formatting inside a link's text writes inside its
brackets, so a revise keeps it, andto_markdown_checkednames anx-
block or mark among its losses (Loss::ExtBlock,Loss::ExtMark). - fix(content): a revise of a short paragraph keeps its neighbours'
records: lines pair by the diff's word tokens, and a rewrite of the first
block keeps the\nthat opens the next. - feat(core):
edit::content_applynames its failure inreason
(stale,unknown_block,anchor_held,bad_step,invalidand the
rest), with thestepit refuses at forstaleandbad_step.
Repair and mapping
- feat(content)!:
repairanswers its change,{content, repairs, change}, from the merged state, so a peer maps a caret through it.
repair::change_incounts it in a host's units, and Python gains
repair. A range anchor on a heading's repaired hard break shrinks off it. - fix(content): a position maps through an island a change moves, each
removal paired with the insert that carries its slots, andinvert's
inverse splice carries what it deletes.
Bounds
- feat(content)!: content values, changes and markdown are bounded at
every door: marks per text (64, plus 4 per character), 100 000 anchors
per value, 10 MiB of markdown per import and of text per binding input,
16 384 steps per change, and 1 000 000 characters of footnote note copies.
Each refuses under its own code (edit::too_many_marks,
too_many_anchors,input_too_large,too_many_steps); a note
reference past the budget stays as its text, warningfootnote:size.
Storage and the line form
- feat(core)!: saves write
quillmark/document@0.135.0, whose content
values may carrycodec, so a 0.134 build refuses a row 0.135 saves. A
0.134.0row loads unchanged. - feat(core): a line-form value loads migrated, and warns. A v1 body,
field at any depth or$seedvalue, under any tag, loads as the content
model withcontent::noncanonical_readat its path, so a resave over
every row finds and rewrites the rows still holding the line form. A
$extvalue stays as stored. - refactor(content,core)!: one content model.
quillmark_core::Content
is the content model, and the line form lives under the hidden
quillmark_content::lines. Markdown import and export, the Typst emitter,
acroform, card bodies and a revise's anchor carry read the model, with
output unchanged across the parity corpus.quillmark::Lines,Deltaand
the line-form verbs (body_lines,overwrite_body,revise_body_content
and their kin) are gone;...
v0.134.1
- feat(wasm):
repair(raw)reads a merged state as a valid value. It
takes aRawContent, offsets in UTF-16 code units, and answersRepaired:
the content and theRepairs it made,inserts: trueon one a single
writer writes back. An offset inside a character moves to its start, one
past the text to its end. The runtime exportsRawContent,Repair,
Repaired,Pos,MapResultandWrapKind. - fix(content):
diffedits a table's cells before its props, so a
change merging or splitting cells lands its spans.
v0.134.0
Upgrade path: 0.133 → 0.134. Every
content value is the content model, and offsets in content values and changes
cross WASM in UTF-16 code units, where they counted scalar values. Python's
revise_body, revise_field and revise_document return a dict receipt,
where they returned a list of Diagnostic, so a loop over the result runs
over its keys: read receipt["warnings"].
Content v2
- feat(content)!: the content model. One value per body or
richtext
field: flat text, blocks and containers with ids, marks, anchors apart from
marks, and islands whose cells and notes are slots of nested content.
Nothing derived is stored: an item's number is computed, and runs are told
apart by container id. The line form moves underquillmark_content::lines
and stays what the renderers and markdown codecs read;migratemoves
values between the two, minting ids deterministically. - feat(content)!: the line form's op lane is removed.
lines::ops
(ChangeBundle,LineOp,MarkOp,IslandOpand their decoders),
Card::apply_body_change,Card::apply_field_change, theNormalized
apply_*methods andEditError::ContentApplygo: aChangethrough
Card::applyis the one edit.quillmark::sessionno longer re-exports
them. The parity corpus's op-wire cell reads theChangedifftakes
from the empty value. - feat(content):
Change, the one way a value is edited. Splice,
setBlock,container,mark,anchor,islandandnestedsteps,
withinvert,compose,map_posand a word-aligneddiff, each a
property-tested law. A change yields a valid value or fails and changes
nothing. - feat(content)!: a block's record rides the
\nthat opens it. A
split names the right half and the left keeps its id, so Enter at the end
of any block, the last included, leaves the text on its id; a join keeps
the left block's id and kind.blocks[0]is the record no splice reaches,
sodiffandreplacekeep the stored first id, andrepairgives the
first piece of a block it splits beside an island the block's record. - feat(content):
gestures::split_blockandjoin_blocksbuild Enter
and Backspace as one splice each, inserting ahead of a block's opening
\nat its start so the text keeps its id. - feat(content):
gestures::inherited_marks(content, at)answers the
marks typed text carries:strong,emph,underlineandstrikegrow
at their end,code,linkand anx-mark at neither edge,
font_familyat both. - feat(bindings)!: every WASM offset is UTF-16. A region's
span,
positionAt's andlocate'spos, a typed revise'sRevised.deltaand
the deltasreattachtakes count in UTF-16 code units, as content values
and changes do; core takes a host's units throughLiveSession::*_in,
Engine::render_in,Revised::delta_inandDocument::reattach_in. - feat(content):
repairmakes a merged state valid. A missing
container leaves a path, a container under two paths takes its first
block's, a later run gets a derived container, an orphan slot or record
goes, text beside a table splits off, and a collapsed range anchor is
dropped. Total and deterministic. - feat(content): repair is how a merged state reads, and a write-back is
optional. Peers holding one merged state compute one value without
writing. Any peer may write back a repair that only deletes or sets; one
that inserts (a block split beside an island, a heading's hard break, a
missing cell) is written back by a single writer, since two peers would
each insert their own.Repair::insertssays which,inserts: trueon
the wire, and a missing cell reportsRepair::EmptyCell. - feat(core)!: storage moves to
quillmark/document@0.134.0, each body
and richtext field the content model. An older row loads migrated, with the
same ids on every load. A value holds each anchor id once over its text
and every slot, so a stored value holding one twice loads keeping its
first holder. - feat(core)!:
Card::apply,reviseandreplacewrite a body or
richtext field and answer aReceipt: the applied change, the new hash,
and the dropped and moved anchors. Each takes the hash its writer read and
refuses a stale one withedit::stale_base.Card::writetakes the
Editeach builds its change from, andwrite_intakes a host's units. - feat(wasm)!:
doc.read,apply,revise,replace,annotatedand
hash(addr), andinvertanddiff, offsets in UTF-16 code units.
Every content payload crossing the binding is the model.overwrite,
reviseContent,applyChangeandmapMarksare removed: callreplace
andapply.compose,rebaseandrepairstay unbound until the
editor or collaboration calls them. - feat(wasm)!: the editing gestures and
mapPos(change, pos, assoc?).
splitBlock,joinBlocks,deleteRange,indent,outdent,wrapand
inheritedMarkstake aContentand answer theChangeto apply, offsets
in UTF-16.mapPoscarries a position across aChange, where it took a
line delta, and answers aMapResult. - feat(python)!: the same surface in snake case, offsets in code points.
- feat(core)!: a content write names its card by
$id. An id no card
holds refuses withedit::unknown_card_id.Document::card_indexand
card_by_idfind a card by id. WASMAddr.cardand Pythoncard=
take a card's$idon every verb, andapply,reviseand
replacetake nothing else, so a card moved or inserted between a read and
its write, its body equal to the one read, no longer takes the write. - feat(content)!: the receipt names every anchor a change loses. An
island a splice deletes, or a slot a props step no longer names, names the
anchors of its slots, each with theislandandslotthat held it.
reviseandreplacename every anchor they lose;applyevery one but
those its ownanchorsteps removed.Applied.droppedand
Receipt.dropped_anchorsarechange::Dropped, anAnchorContextand a
SlotRef; WASM spells itDroppedAnchor. - feat(content)!:
diffrefuses an invalid target.diffandreplace
return theInvariantan invalidafterbreaks, where they returned zero
steps, and reach every valid one step-wise. WASM and Pythondiffanswer
theChange. - feat(content)!: every offset-addressed step can hold to what its writer
read.marksteps and ananchorplacement take an optionalquote,
the text their range covered, and anislandinsert an optionalblock,
the id of the block it lands in; a mismatch isApplyError::Stale, as a
splice'sdeleteis.Applied.appliedandinvertfill both in.
MarkStep::Add,MarkStep::Remove,AnchorStep::Setand
IslandStep::Insertcarry the new fields. - feat(content)!:
map_posanswers aMapResult. A position always
lands, inside deleted text on the deletion'sassocedge and inside an
island a splice deleted on the island's slot, withdeleted,
deleted_before,deleted_afteranddeleted_acrosssaying what went
around it. A splice that deletes an island and names none inremovedis
refused, where it mapped a position inside that island as kept. New
mapping::StepMapandMapping, a list of step maps with mirror links, so
a position a step deleted and its rebased mirror put back maps home. - feat(content)!: reserved
x-names on three vocabularies. A block
kind, mark type or island type spelledx-and more decodes into
BlockKind::Ext,MarkKind::ExtorIslandType::Ext, its attrs or props
held as written, and re-encodes to the same bytes; any other unknown name
still refuses. Validation is structural only. Anx-block reads as a
paragraph, anx-mark formats nothing, and anx-island renders and
exports to markdown as nothing, which the annotated read spells as its
token so a revise keeps it; a content write's revise or replace that
removes one refuses withedit::drops_ext_island, andapplyremoves it.
Steps set and remove them.MarkStep::Remove'stagis aString,
BlockKind::tagandMarkKind::tagreturn&str, andIslandTypeis no
longerCopy. - feat(content):
rebase(base, change, over)moves a change past another
made from the same value, after ProseMirror'srebaseSteps. Each step
maps through the inverse of its change's earlier steps, thenover, then
those steps rebased, and holds to itsdelete,quoteorblockon the
value it now reads; a stepoverdeleted the text of, or whose id is gone,
is arebase::Conflictnaming it. A step by id that would overwrite what
overchanged (a block's kind or path, a container, an island's props)
conflicts rather than undoing it, as does a splice that deletes an island
or blockoverchanged, so a diff'ssetBlocknames only the fields it
changes.
Mapping::map_pointandprojectmap
asapplymoves a point anchor and inside one slot. - feat(core)!: a stale
baserebases the write instead of refusing it.
Each card keeps, in memory only, a log of its recent writes per value: one
snapshot of the value, and each write's normalized change and the hash it
left. A base rebases while the writes since it hold at mostLOG_STEPS
(4096) steps, thousands of keystrokes, and the base the newest write read
whatever its size; past twice that, the oldest writes fold into the
snapshot, so the log holds one copy of the value however large.
apply,reviseandreplacewith a base the log holds rebase over the
changes since, and a revise or replace diffs from the value the base
names. The receipt's newrebasedsays so. A conflict refuses with
edit::rebase_conflict, carryingstepandreason; a base the log does
not reach isedit::stale_baseas before.Card::read_atan...
v0.133.0
Upgrade path: 0.132 → 0.133. The
blueprint is retired: a model writes the JSON authoring document, so a prompt
built from quill.blueprint moves to quill.authoringSchema. A root
example.md is an ordinary file: a quill's example is what its Quill.yaml
declares, so move each value onto its field before upgrading.
LLM authoring
- feat(core,cli,wasm,python)!: LLMs author documents as JSON; the blueprint
is retired. The authoring document is the values form lifted to the whole
document,{fields, body, cards: [{kind, fields, body}]}, every rich-text
field and body a Markdown string andnullabsent.
QuillConfig::authoring_schema()is its JSON Schema, built by
build_transform_schemaunder the newSchemaCodec::Text: every cell admits
null, every declared object refuses an undeclared key, a variant-bearing enum is aoneOfper world, and each slot carries
itstitle,description,defaultandexamples.
Quill::to_authoringexports a document, a field stored asnullabsent, andQuill::from_authoringimports
and conforms one, refusing a malformed shape withauthoring::invalid_shape,
its RFC 6901 pointer inargs.pointer. Export never fails: an undecodable
or string-held content leaf passes as stored, so every export validates
against the schema and imports back unchanged.
WASMauthoringSchema/toAuthoring/fromAuthoring, Python
authoring_schema/to_authoring/from_authoring, and
quillmark schema --authoringexpose them.QuillConfig::blueprint(),
quill.blueprint,quillmark blueprintandprint_blueprintare deleted;
quillmark validaterenders the empty and seeded documents.
build_transform_schematakes aSchemaCodec. The blueprint's load rules go
with it: a multi-linedescription:and an enum member holding>,;or
|load, andquill::description_multilineand
quill::format_literal_reserved_charare deleted. (#2331)
Examples
- feat(core)!:
example:and a body'sdescriptionandexamplejoin the
quill schema. A slot at any depth declares at most oneexample:, a value
of its type checked at load asdefault:is, under
quill::example_{type_mismatch,not_in_enum,format_violation,held_stored,on_namespace,over_max,over_length}
andquill::richtext_example_import. It answers no cell. A body'sdescriptionis text for the writer and its
examplemarkdown that imports without a drop; either beside
enabled: falseisquill::invalid_body.schema()carries them,
FieldSchemaandBodyCardSchemagain the fields, and WASM types them as
QuillFieldSchema.exampleandQuillCardBody.{description,example}. (#2329) - feat(core,cli,wasm,python)!: the example document is derived.
Quill::example_document()returnsOption<Document>: the seeded document
with every declaredexample:committed and each kind'sbody.exampleas
its body,Nonewhere the quill declares none. A rootexample.mdis an
ordinary file:EXAMPLE_FILEandquill::example_referenceare deleted,
WASMexampleDocument()and Pythonexample_document()no longer throw, and
quillmark validatevalidates and renders the derived document, warning
cli::example_file_ignoredwhile a rootexample.mdremains. The
fixture quills declare the values theirexample.mdheld. (#2329)
Content
- feat(content,core,wasm):
reviseContentrevises a body or field to a
content and keeps its prose anchors. WASMdoc.reviseContent(addr, rt),
over core'sCard::revise_body_content/revise_field_contentand the
content crate'sdelta::carry_anchors, diffs a content built elsewhere
against the stored value, carries each prose anchor whose idrtdoes not
hold, and returns theRevisedreceipt with its textdelta.rt's own
anchors and island ids land as they are. - feat(content)!: normalizing content moves no text. A table's slot
sharing its line with prose is canonical:Content::normalizeleaves the
line as given, where it inserted a\non each side, andto_markdown
breaks it instead.overwrite,reviseContentand
serial::from_authored_valuetake the shape where they threwblock island in a line's prose, anIslandOp::Seton such a table lands, and a stored
row holding it loads as stored under the same tag. Typst sets the table as a
block where its slot sits, closing a heading around it, and a hard break
after a line the slot ends clears. WASM gainsnormalize(content), the form
overwritestores. (#2330)