Skip to content

Commit

Permalink
fix: missplace
Browse files Browse the repository at this point in the history
  • Loading branch information
Its-Just-Nans committed Feb 1, 2024
1 parent e1d12e1 commit 6616b22
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,18 @@ export default {
```

See the [Mermaid config documentation](https://mermaid-js.github.io/mermaid/#/./Setup?id=configuration) and the [Mermaid config types](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts) for the available config options.

## Mermaid Component {#component}

To generate dynamic diagrams, you can use the `Mermaid` component:

```jsx title="Example dynamic Mermaid component"
import Mermaid from '@theme/Mermaid';

<Mermaid value={`graph TD;
A-->B;
A-->C;
B-->D;
C-->D;`}
/>
```
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,3 @@ export default {

See the [Mermaid config documentation](https://mermaid-js.github.io/mermaid/#/./Setup?id=configuration) and the [Mermaid config types](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/config.type.ts) for the available config options.

## Mermaid Component {#component}

To generate dynamic diagrams, you can use the `Mermaid` component:

```jsx title="Example dynamic Mermaid component"
import Mermaid from '@theme/Mermaid';

<Mermaid value={`graph TD;
A-->B;
A-->C;
B-->D;
C-->D;`}
/>
```

0 comments on commit 6616b22

Please sign in to comment.