Skip to content
Open
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
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,19 @@
Markdown formatting plugin for dprint.

This uses the [pulldown-cmark](https://github.com/raphlinus/pulldown-cmark) parser for markdown.

## Building `.wasm` File as Plugin for `dprint`

If you want to build a `.wasm` file to be used as a plugin for `dprint` the following command can be used:

```
cargo build --release --target=wasm32-unknown-unknown --features="wasm"
```

The `--release` parameter is optional. The generated `.wasm` file can then be found in the target directory.

Note that this requires adding `wasm32` as a Rust target. This can be done using the following command:

```
rustup target add wasm32-unknown-unknown
```