Repository navigation
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)