bytecodealliance / bytecodealliance/wit-bindgen

`wit-abi` gets confused about imports

Open
#667 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.5k
Forks
286
Avg merge
6h 32m
Merged PRs (30d)
19

Description

Moved from https://github.com/WebAssembly/wasi-tools/issues/17; the "tool" mentioned here is `wit-abi`:

Looking at the Markdown/HTML produced for wasi-nn, this tool seems to confuse the Markdown parser whether it should convert several lines to Markdown or print them as HTML: [`ml.md`](https://github.com/WebAssembly/wasi-nn/blob/main/ml.md#types-3). `wit-abi` happily produces intermixed Markdown and HTML until it gets to a point (I believe related to imports?) where it dumps something that gets displayed as:

```
#### `type tensor` [`tensor`](#tensor)

#### `type tensor-data` [`tensor-data`](#tensor_data)

#### `type graph` [`graph`](#graph)

#### `type graph-execution-context` `u32`
```

This is not a high priority issue but I thought I would report it while it's on my mind.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.