Render italics in glossary related terms on main
LU
4h ago+3+3+0123456789-2-2-0123456789
Ports the related-terms change from #1085 (merged into rebrand-doors) to main, so #1092 can merge before the Doors launch. The three lines in layouts/glossary/single.html are identical to #1085's, so merging main into rebrand-doors later should not conflict.
What changes
- Related terms strip
*and\before building the link slug, so*p*-hackinglinks to/glossary/english/p_hacking/. - Link text and unlinked terms are rendered with
markdownify, so*p*shows as an italic p.
Effect on current content (all 1,035 related-terms lines compared before and after on main)
- 12 lines change, all for the better:
&is now escaped as&; a trailing space inside the "Meta-science or Meta-research" link is gone; the stray "Incorrect definition:" text on the Statistical significance pages renders bold instead of showing asterisks (#1092 removes that text).
With #1092's glossary content
- p-hacking (35 links) and p-value (20 links) render italic and link to their pages. p-value fishing and Reverse p-hacking render italic without a link, as they have no glossary page.
hugobuilds andscripts/check_seo_html.pypasses on both builds.
Not included: italic rendering of term titles (e.g. "Research Contribution Metric (*p*)" in the sidebar). That part of #1085 depends on the Doors title partial.
🤖 Generated with Claude Code
Summary by cubic
Ports the glossary related-terms fix from rebrand-doors to main so related terms render Markdown correctly before the Doors launch.
- Related terms like
*p*-hackingnow link to/glossary/english/p_hacking/and show an italic p. - All 1,035 related-terms lines were compared before and after: 12 change, fixing
&escaping, a trailing space, and bold rendering of "Incorrect definition:". - Hugo builds and
scripts/check_seo_html.pypass on both builds.