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:
parent
3e7b498dce
commit
bb558747a7
2 changed files with 1 additions and 14 deletions
|
@ -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).
|
||||
|
|
|
@ -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[];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue