One vocabulary + one reference renderer so every fleet site reads long-form
at the same standard, while typography tokens stay per-site.
Parser (root export, still zero-dep; the v0.1 ten block types unchanged):
- Inline model: parseInline → text/strong/em/code/link/footnoteRef spans;
every text-bearing block keeps `text` and gains additive `spans`.
- New blocks: h4, hr, figure (caption title), gallery (adjacent images
merge), callout (GitHub > [!NOTE] syntax, nestable), pullquote (>> with
— cite), mermaid, chart (tiny declarative spec; malformed specs THROW),
math ($$), footnote defs, stats fence.
- Headings gain slugified, de-duplicated, umlaut-aware ids (kivvi's scheme).
- parseFrontmatter learns YAML arrays (inline + block lists), still dep-free.
- Helpers: extractToc, readingTime, slugify/createSlugger, parseChartSpec.
Renderer (new bip-kit/react subpath + bip-kit/styles.css):
- ArticleBody: async RSC that pre-awaits shiki/katex, then emits a fully
synchronous tree (renderToString-safe). Server components for every block;
client islands: Toc (scroll-spy, hidden under 3 headings), ReadingProgress,
Lightbox, CopyButton. MermaidBlock on its own bip-kit/react/mermaid subpath
so the mermaid peer never enters uninterested bundles (components override).
- shiki/katex are optional peers loaded via bundler-invisible dynamic import;
honest degradation without them (mono <pre>, TeX source with data-math).
- styles.css: complete neutral theme — 70ch measure, real vertical rhythm,
dark mode via vars only (data-theme wins over prefers-color-scheme),
mobile-first, print-safe; every color/radius/font is a --bp-* custom
property (theming contract documented in the README).
CI: ci.yml gains workflow_dispatch (re-arm strand — a GITHUB_TOKEN merge
cannot trigger workflows on its own; threadkit#28 pattern).
96 tests: v0.1 compat goldens (original shapes byte-identical after
stripping additive fields), goldens for every new syntax form and edge case,
renderToString smoke tests for every block type with and without the
optional peers (BIPKIT_DISABLE_PEERS seam), consumer-install pack test now
probing ./react, ./react/mermaid and ./styles.css.
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* chore: add a formatter, matching the style this repo already writes
singleQuote=false was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.
Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* style: format with prettier (7 files)
Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* chore: teach git blame to skip the reformat
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
- Single unscoped package `bip-kit` (was @bip-kit/core in a workspace):
tsc build to dist/, exports map with types, files allowlist, provenance.
- NodeNext module resolution with explicit .js specifiers.
- Real test suite (32 tests): parser block semantics incl. CRLF, unterminated
fences, table/paragraph ambiguity, embed allowlisting; frontmatter quoting
and colon-in-value; video allowlist rejections incl. lookalike hosts; and a
tarball-consumer test that imports the packed package by bare specifier so
the exports map and files list are what gets tested, not relative paths.
- CI (verify) + reconciler publish workflow: merging a version bump to main
is the release; auth is npm trusted publishing (OIDC), no token anywhere.
- README rewritten around the content contract; templates now reference
`bip-kit`. The cp-based "sync from studio" model is gone: FleetCrown and
AOZ will consume this package from npm instead of vendored copies.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>