Bug report: local anchor link

Yes, I’m afraid that because the cell output is safely contained in a sandboxed frame, it’s a little more difficult than normal to link directly to other parts of the page.

But it can be done!

You need to target your link to the parent frame, and use the full URL of the published notebook, like so:

html`<a target="_parent" href="https://beta.observablehq.com/@jashkenas/my-cool-notebook#map">clipped</a>`