Skip to content

Commit d4443c1

Browse files
committed
update readme regarding images
1 parent 89af43d commit d4443c1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ results in this graphics:
270270
## Images
271271
Images can be included in graphviz in two ways.
272272

273-
One possibility is using the <img> tag inside a HTML label:
273+
One possibility is using the \<img> tag inside a HTML label:
274274

275275
[//]: # (img)
276276
```java
@@ -285,11 +285,10 @@ g.basedir(new File("example")).render(Format.PNG).toFile(new File("example/ex7.p
285285
Because viz.js [does not support \<img> tags](https://github.com/mdaines/viz.js/issues/125),
286286
**this works only when using the command line engine**.
287287

288-
The other way is the image attribute of a node:
288+
The other possibility is the `image` attribute of a node:
289289

290290
[//]: # (image)
291291
```java
292-
Graphviz.useEngine(new GraphvizV8Engine());
293292
Graphviz g = Graphviz.fromGraph(graph()
294293
.with(node(" ").with(Size.std().margin(.8, .7), Image.of("graphviz.png"))));
295294
g.basedir(new File("example")).render(Format.PNG).toFile(new File("example/ex8.png"));

0 commit comments

Comments
 (0)