Skip to content

Repository files navigation

Folddown

Structured Markdown that folds canonical knowledge down to each reader.

Folddown keeps one readable, versioned source document and deterministically renders an appropriate view for a reader profile. A profile can express locale, known concepts, learning goal, role, and evidence requirements. The source is never rewritten to make a view; the view is a projection with a traceable selection manifest.

Status

This is an early MoonBit prototype. The current package establishes the Markdown integration and normalizes source through mizchi/markdown. Directive syntax, reader selection, and render manifests are designed but not implemented yet.

Principles

  • Canonical source is the only editable authority.
  • Rendering is deterministic from source, profile, and renderer version.
  • Every output fragment is traceable to a stable source node.
  • Locale fallback and omitted content are explicit in the render manifest.
  • LLMs propose structured edits and review drift; they do not silently decide rendering semantics.

Development

The prototype currently consumes the unreleased mizchi/markdown 0.6.4 from the sibling checkout at ../markdown.mbt. Clone both repositories under the same parent directory, then run:

just

moon.work resolves this local checkout during development. Once mizchi/markdown@0.6.4 is published, the workspace can be removed and the existing registry pin in moon.mod will resolve normally.

Design

See the design for the source model, invariants, proposed annotation syntax, and delivery phases.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages