Closed simonw closed 9 months ago
On older pages rendered before that change it looks like this: https://til.simonwillison.net/sqlite/cr-sqlite-macos
Short-term fix: JavaScript. Longer-term fix: rewrite the HTML that comes back from the API before saving it in the database.
Previous HTML looks like this:
<h2>
<a id="user-content-how-that-all-works" class="anchor" aria-hidden="true" href="#how-that-all-works">
<span aria-hidden="true" class="octicon octicon-link"></span>
</a>How that all works
</h2>
I'm almost happy with this workaround: https://til.simonwillison.net/sqlite/sqlite-tg
But... https://til.simonwillison.net/sqlite/sqlite-tg#trying-it-out is the link it generates, which works with JS enabled but isn't the actual ID in the page. I'll fix that.
I'm happy with this.
Following:
81
The output of the GitHub Markdown API I am using changed and now:
https://til.simonwillison.net/sqlite/sqlite-tg
But it doesn't quite work -
#installation
does not resolve touser-content-installation
: