Skip to content

Commit

Permalink
Update .changeset/dirty-socks-sip.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah11918 authored Oct 8, 2024
1 parent 69f64a1 commit 421ec4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/dirty-socks-sip.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'astro': minor
---

Adds a `markdown.shikiConfig.langAlias` option that allows [aliasing a non-supported code language to a known language](https://shiki.style/guide/load-lang#custom-language-aliases). This is useful when the language of your code samples is not [a built-in Shiki language](https://shiki.style/languages), but you want your Markdown source to display an accurate language while also displaying syntax highlighting.
Adds a `markdown.shikiConfig.langAlias` option that allows [aliasing a non-supported code language to a known language](https://shiki.style/guide/load-lang#custom-language-aliases). This is useful when the language of your code samples is not [a built-in Shiki language](https://shiki.style/languages), but you want your Markdown source to contain an accurate language while also displaying syntax highlighting.

The following example configures Shiki to highlight `cjs` code blocks using the `javascript` syntax highlighter:

Expand Down

0 comments on commit 421ec4c

Please sign in to comment.