Skip to content

Commit

Permalink
adding missing step of dependencies installation (#5492)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxg authored Jan 3, 2023
1 parent a71f679 commit e3c7bf6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/examples-markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ cargo new --bin rust_wasi_markdown_parser
cd rust_wasi_markdown_parser
```

Also, we need to add the `structopt` and `pulldown_cmark` crates to our project:

```bash
cargo add structopt pulldown_cmark
```

Then, we will open the `src/main.rs` and enter the following contents. Please see the comments to understand what our program will be doing.

## `src/main.rs`
Expand Down Expand Up @@ -50,7 +56,7 @@ wasmtime --dir . target/wasm32-wasi/debug/rust_wasi_markdown_parser.wasm -- ./ex

Which should look like the following:

```html
```html
<h1>Hello!</h1>
<p>I am example markdown for this demo!</p>
```
Expand Down

0 comments on commit e3c7bf6

Please sign in to comment.