Skip to content

Commit f132435

Browse files
committed
notes
1 parent 04712e5 commit f132435

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

packages/docs/src/content/docs/diagrams/graphviz.mdx

+13-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ digraph finite_state_machine {
3535
8 -> 5 [label = "S(a)"];
3636
}
3737
```
38-
38+
3939
</TabItem>
4040
<TabItem label="Markdown">
4141

@@ -126,3 +126,15 @@ digraph G {
126126
}
127127
```
128128
````
129+
130+
## TODO
131+
132+
- [ ] support images
133+
134+
```js
135+
graphviz.neato('digraph { a[image="./resources/hpcc-logo.png"]; }', "svg", {
136+
images: [
137+
{ path: "./resources/hpcc-logo.png", width: "272px", height: "92px" },
138+
],
139+
});
140+
```

packages/docs/src/content/docs/diagrams/penrose.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ use(rehypePenrose, {
123123
Or locally:
124124

125125
````md
126-
```penrose width=400 height= 400
126+
```penrose width=400 height=400
127127
...
128128
```
129129
````

packages/docs/src/content/docs/examples/graphviz-test.md

+7
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,10 @@ graph {
103103
}
104104
```
105105

106+
## Image
107+
108+
```dot
109+
digraph {
110+
a[image="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png"];
111+
}
112+
```

0 commit comments

Comments
 (0)