0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-04-14 23:51:49 -05:00

docs: apply Sarah's suggestions (#13406)

Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
This commit is contained in:
Emanuele Stoppa 2025-03-12 15:32:40 +01:00 committed by GitHub
parent 3e7b498dce
commit bb558747a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 14 deletions

View file

@ -9,9 +9,6 @@ This option provides better support for diagramming tools that rely on Markdown
This option allows you to avoid rendering conflicts with tools that depend on the code not being highlighted without forcing you to disable syntax highlighting for other code blocks.
The default value for `excludeLangs` is `['math']` and remains unchanged by default in this release.
But users can now override it to exclude other languages or exclude no languages.
The following example configuration will exclude highlighting for `mermaid` and `math` code blocks:
```js
@ -27,3 +24,4 @@ export default defineConfig({
});
```
Read more about this new option in the [Markdown syntax highlighting configuration docs](https://docs.astro.build/en/reference/configuration-reference/#markdownsyntaxhighlight).

View file

@ -1352,17 +1352,6 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
* });
* ```
*
* ```html
* <!-- Call Mermaid JavaScript Integration in the body -->
* <script>
* import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs';
* mermaid.initialize({ startOnLoad: false });
* mermaid.run({
* querySelector: 'data-language="mermaid"',
* });
* </script>
* ```
*
* */
excludeLangs?: string[];
}