Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated README to customize output types #35

Merged
merged 1 commit into from
Dec 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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