simonw / simonwillisonblog

The source code behind my blog
https://simonwillison.net/
Apache License 2.0
202 stars 18 forks source link

Don't apply curly quotes to HTML examples #405

Closed simonw closed 8 months ago

simonw commented 8 months ago

Just ran into this with blogmarks:

https://simonwillison.net/2024/Feb/20/htmz/

CleanShot 2024-02-19 at 17 33 29@2x

I'd like to support actual Markdown style inline code syntax, but that's a bit hard to figure out right now.

Instead I'm going to teach my curly quote code to ignore anything that sits inside an HTML tag.

simonw commented 8 months ago

Example posts linked from this dashboard: https://simonwillison.net/dashboard/blogmarks-with-tags/

simonw commented 8 months ago

This broke one page - https://simonwillison.net/2022/Sep/5/upper-bound-version-constraints/ is now a 500 error.

On https://web.archive.org/web/20230302140347/https://simonwillison.net/2022/Sep/5/upper-bound-version-constraints/ it looks like this:

CleanShot 2024-02-19 at 17 47 13@2x

simonw commented 8 months ago

Here's the error:

CleanShot 2024-02-19 at 17 49 14@2x