simonw/simonw

TIL with underscores in title showing up in bold

simonw opened this issue · 3 comments

simonw_simonw__https___simonwillison_net_2020_Jul_10_self-updating-profile-readme_

Title should be __init_subclass__.

Relevant code:

simonw/build_readme.py

Lines 133 to 138 in f4b4a14

def fetch_tils():
sql = "select path, title, url, topic, slug, created_utc from til order by created_utc desc limit 5"
return httpx.get(
"https://til.simonwillison.net/tils.json",
params={"sql": sql, "_shape": "array",},
).json()

I can fix this in the SQL: replace(title, '_', '\_') as title

Fixed:

simonw_simonw__https___simonwillison_net_2020_Jul_10_self-updating-profile-readme_