Repository navigation
feat: support Astro 7 - #17
Merged
Merged
Conversation
Astro 7 deprecated `remarkPlugins`/`rehypePlugins` on `mdx({...})` and stopped
running them: the build still succeeds, every page is still written, and every
code block comes out as a bare <pre> with no highlighting, no copy button and
no annotation pairing. The plugin list moves to `markdown.processor` via
`unified()` from @astrojs/markdown-remark, which MDX inherits.
Both tarball smokes now assert the built HTML contains a highlighted code
figure, so a pipeline that silently stops running fails the release gate
instead of shipping unstyled docs.
@types/hast is pinned: astro 7 pulled a second copy, and hast's nominal types
made hastscript's Child reject theme-ui's ElementContent.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
tangly-docs | 8f92b44 | Aug 25 2026, 01:01 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A project that pins Astro 7 itself (root
overrides, a monorepo that hoists it, anything that outranks tangly's^6) gets a docs site where every code block is an unstyled<pre>: no highlighting, no copy button, no annotation pairing. Astro 7 deprecatedremarkPlugins/rehypePluginsonmdx({...})and stopped running them. Nothing fails: build exits 0,tangly check --strictpasses, every page is written. This is live on docs.squirrelscan.com right now.What
@astrojs/mdx7, Vite 8, plus current Cloudflare / Node / Vercel / Preact adapters.markdown.processorviaunified()from@astrojs/markdown-remark, which MDX inherits. One pipeline for.mdand.mdx, declared once.@types/hastpinned. Astro 7 pulled a second copy; hast's nominal types then madehastscript'sChildreject theme-ui'sElementContent. Note a stalenode_modulessurvives the pin: a clean install is needed once.tangly-code-figure.Verification
bun run cigreen: format, lint, build, typecheck, 141 + 20 tests.mdx(), the flat smoke fails withno highlighted code figure in 4 built page(s). Restored, it passes. It also caught a bug in its own first draft (asserting againstindex.html, when the fixture's fence renders at/introduction/), which is why it now scans every built page.Notes
Vite 8 surfaces deprecation warnings from Astro's own dev-toolbar plugin (
optimizeDeps.esbuildOptions,resolve.aliascustomResolver). They come from Astro, not from Tangly config, and are noise until Astro updates.Release as 0.4.0 (minor); the changelog entry is in this PR and the release workflow gates on it.