Skip to content

Commit

Permalink
more tips
Browse files Browse the repository at this point in the history
  • Loading branch information
stereobooster committed Oct 21, 2024
1 parent 7ed36fa commit 7c0ef88
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/demo/src/content/docs/examples/vizdom.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: vizdom

## Simple

```vizdom dataGraph=dagre
```vizdom dataGraph=dagre svgo=false
digraph TD {
cluster=true
node [shape=box]
Expand Down
16 changes: 16 additions & 0 deletions packages/rehype-vizdom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,20 @@ You have two options:
```
````

If you're using `@tailwindcss/typography`, it is probably a good idea to add `not-content` globally.

### Add links

Inline SVG can contain HTML links:

````md
```vizdom
digraph G {
node[URL="https://example.com"]
}
```
````

### Rounded corners for rectangles

1. Disable `svgo` or provide your own configuration with `convertShapeToPath: false`
Expand All @@ -114,6 +128,8 @@ You have two options:

### Client side interactivity

[demo](https://beoe.stereobooster.com/examples/vizdom/)

1. Set option to generate `data-graph` HTML attribute
- either globally
```js
Expand Down

0 comments on commit 7c0ef88

Please sign in to comment.