wit-bindgen
wit-bindgen copied to clipboard
`markdown` creates hyperlink for parameter name if it shares name with type
foo.wit:
interface foo {
type foo = u64
foo: func(foo: foo) -> foo
}
world foo {
default export foo
}
foo.html:
<h1>Default exported interface of <a href="#foo"><code>foo</code></a></h1>
<h2>Types</h2>
<h2><a href="#foo" name="foo"></a> <a href="#foo"><code>foo</code></a>: <code>u64</code></h2>
<p>Size: 8, Alignment: 8</p>
<h2>Functions</h2>
<hr />
<h4><a href="#foo" name="foo"></a> <a href="#foo"><code>foo</code></a></h4>
<h5>Params</h5>
<ul>
<li><a href="#foo.foo" name="foo.foo"></a> <a href="#foo"><code>foo</code></a>: <a href="#foo"><a href="#foo"><code>foo</code></a></a>< /li>
</ul>
<h5>Results</h5>
<ul>
<li><a href="#foo.result0" name="foo.result0"></a> <code>result0</code>: <a href="#foo"><a href="#foo"><code>foo</code></a></a></li>
</ul>
This line should not have <a href="#foo"> for the parameter name:
<li><a href="#foo.foo" name="foo.foo"></a> <a href="#foo"><code>foo</code></a>: <a href="#foo"><a href="#foo">
Another issue is the naming conflicts with types, functions, and worlds, they all share the same hyperlink.