Skip to content

Commit

Permalink
Merge pull request #35 from andorsk/andorsk-updated-readme
Browse files Browse the repository at this point in the history
updated README to customize output types
  • Loading branch information
andorsk authored Dec 13, 2022
2 parents ec3faea + ec1f0b6 commit 55e8e5d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ Note: All compile commands will open the output in a buffer to view the resultin

You can specify the location of `d2` with the variable `d2-location`, the default assumes you have the binary in your `PATH` (and for that you probably want/need to install [`d2`](https://github.com/andorsk/d2-mode)).

### `d2` output format

You can specify png or svg output format by putting this in your `init.el` file:

```(setq d2-output-format "<OUTPUT_FORMAT")```

Optins are:
- `.png`
- `.svg`

Default is SVG.

### Output format

By default `d2` will compile to svg format. You can change that by setting the variable `d2-output-format`.
Expand Down

0 comments on commit 55e8e5d

Please sign in to comment.