summaryrefslogtreecommitdiff
path: root/packages/markdown/remark/CHANGELOG.md
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2024-07-18 08:05:23 -0700
committerGravatar GitHub <noreply@github.com> 2024-07-18 16:05:23 +0100
commitaa05be3313940ee039ae58f01e5e6577a4ea1fe9 (patch)
tree843364cdac8395e1daec3a1853edf555ddf516ae /packages/markdown/remark/CHANGELOG.md
parenta6371696680b8a4c9566cc1c68d7298ca9e3a7aa (diff)
downloadastro-aa05be3313940ee039ae58f01e5e6577a4ea1fe9.tar.gz
astro-aa05be3313940ee039ae58f01e5e6577a4ea1fe9.tar.zst
astro-aa05be3313940ee039ae58f01e5e6577a4ea1fe9.zip
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.md33
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