diff options
author | 2024-07-18 08:05:23 -0700 | |
---|---|---|
committer | 2024-07-18 16:05:23 +0100 | |
commit | aa05be3313940ee039ae58f01e5e6577a4ea1fe9 (patch) | |
tree | 843364cdac8395e1daec3a1853edf555ddf516ae /packages/markdown/remark/CHANGELOG.md | |
parent | a6371696680b8a4c9566cc1c68d7298ca9e3a7aa (diff) | |
download | astro-aa05be3313940ee039ae58f01e5e6577a4ea1fe9.tar.gz astro-aa05be3313940ee039ae58f01e5e6577a4ea1fe9.tar.zst astro-aa05be3313940ee039ae58f01e5e6577a4ea1fe9.zip |
[ci] release (#11481)astro@4.12.0@astrojs/web-vitals@1.0.0@astrojs/svelte@5.7.0@astrojs/mdx@3.1.3@astrojs/markdown-remark@5.2.0@astrojs/markdoc@0.11.3@astrojs/db@0.12.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/markdown/remark/CHANGELOG.md')
-rw-r--r-- | packages/markdown/remark/CHANGELOG.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/markdown/remark/CHANGELOG.md b/packages/markdown/remark/CHANGELOG.md index 4cb58a347..73bab0b25 100644 --- a/packages/markdown/remark/CHANGELOG.md +++ b/packages/markdown/remark/CHANGELOG.md @@ -1,5 +1,38 @@ # @astrojs/markdown-remark +## 5.2.0 + +### Minor Changes + +- [#11341](https://github.com/withastro/astro/pull/11341) [`49b5145`](https://github.com/withastro/astro/commit/49b5145158a603b9bb951bf914a6a9780c218704) Thanks [@madcampos](https://github.com/madcampos)! - Adds support for [Shiki's `defaultColor` option](https://shiki.style/guide/dual-themes#without-default-color). + + This option allows you to override the values of a theme's inline style, adding only CSS variables to give you more flexibility in applying multiple color themes. + + Configure `defaultColor: false` in your Shiki config to apply throughout your site, or pass to Astro's built-in `<Code>` component to style an individual code block. + + ```js title="astro.config.mjs" + import { defineConfig } from 'astro/config'; + export default defineConfig({ + markdown: { + shikiConfig: { + themes: { + light: 'github-light', + dark: 'github-dark', + }, + defaultColor: false, + }, + }, + }); + ``` + + ```astro + --- + import { Code } from 'astro:components'; + --- + + <Code code={`const useMyColors = true`} lang="js" defaultColor={false} /> + ``` + ## 5.1.1 ### Patch Changes |