brianc/node-postgres-docs

Formatting inside headers is rendered in ids as “[object Object]”

Closed this issue · 1 comments

… meaning they often duplicate each other, can’t be linked to, and cause the HTML to be invalid.

Example from https://node-postgres.com/api/result/#properties:

<h2 id="properties" class="css-jehsw0">properties</h2>
<h3 id="[object Object]" class="css-hf8i38"><code class="css-trsm9o">result.rows: Array&lt;any&gt;</code>

and from https://node-postgres.com/api/client/#client.query:

<h2 id="client.query" class="css-jehsw0">client.query</h2>
<h3 id="[object Object], - text, optional values, and callback." class="css-hf8i38">
  <code class="css-trsm9o">client.query</code> - text, optional values, and callback.
</h3>

I’m having trouble finding out where these come from. It’s not anything that uses github-slugger. There’s a package whose update is breaking things, too, which makes searching a bit harder, so I might try fixing that first.