Social media cards missing syntax highlighting
simonw opened this issue · comments
e.g. https://til.simonwillison.net/sqlite/python-sqlite-memory-to-file
It looks like this:
Should look like this:
Here's the problem:
til/templates/pages/{topic}/{slug}.html
Line 15 in 1bec289
I generate the HTML on disk and then take a screenshot of that HTML file - but that relative link won't resolve to a CSS file.
That's going to require regenerating all 410 screenshots AGAIN - for the third time - because the template hash will have changed.
Fixed and deployed.
https://til.simonwillison.net/pytest/registering-plugins-in-tests is a good demo:
https://s3.amazonaws.com/til.simonwillison.net/8dda22f3aab0e3224aa6b2c330b07af3.jpg
In the Facebook debugger: https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Ftil.simonwillison.net%2Fpytest%2Fregistering-plugins-in-tests