feat: add @astrojs/markdown-satteri package#16849
Conversation
🦋 Changeset detectedLatest commit: 4cbdabf The changes in this PR will be included in the next version bump. This PR includes changesets to release 48 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
| 📦 Package | 📏 Size |
|---|---|
| @napi-rs/wasm-runtime@1.1.4 | 6.3 MB |
| @bruits/satteri-linux-x64-gnu@0.6.3 | 3.1 MB |
| @emnapi/core@1.9.1 | 1.9 MB |
| @emnapi/runtime@1.9.1 | 424.1 kB |
| @emnapi/wasi-threads@1.2.0 | 227.6 kB |
| satteri@0.6.3 | 218.5 kB |
Total size change: 12.1 MB
bbec232 to
cdd2a43
Compare
cdd2a43 to
c89ccab
Compare
| @@ -0,0 +1,47 @@ | |||
| // TODO: This is a workaround around a missing API in Sätteri. The visitor architecture naturally does not provide | |||
There was a problem hiding this comment.
Haven't decided of an API shape for this usecase yet in Sätteri. It'll defnitely be supported soon because it's a common request, so I expect it before the next major for sure.
f1719ec to
82a0929
Compare
Drops `SatteriProcessorDescriptor` in favour of `MarkdownProcessor<SatteriResolvedOptions>`, renames `descriptor` → `processor` for consistency with the markdown-remark side, and updates type imports (`AstroMarkdownProcessorOptions` → `AstroMarkdownOptions`, `MarkdownProcessor` → `MarkdownRenderer`) to match the new contract from @astrojs/internal-helpers/markdown.
f8a1b93 to
e80a435
Compare
ArmandPhilippot
left a comment
There was a problem hiding this comment.
I left a nit for the changeset, but this LGTM.
I was also hesitant to mention CSP there... Because as Ema pointed out, CSP users might not want to test it as Shiki is not compatible. But maybe this is something to say in the blog post rather than in the changelog.
Co-authored-by: Armand Philippot <git@armand.philippot.eu>
|
Fwiw, I think we'll be shipping Prism support like, the day after or so. It's not very hard or anything. |
Changes
Adds a new Markdown processor based on https://github.com/bruits/satteri, it's fast! It supports all of Astro's features, apart from Prism syntax highlighting in this first version.
Testing
Added tests to the package
Docs
withastro/docs#13919