We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed6608b commit 0b7101fCopy full SHA for 0b7101f
src/layouts/ReferenceItemLayout.astro
@@ -92,13 +92,14 @@ const descriptionParts = description.split(
92
93
// Normalizes malformed p5.* reference anchors (e.g. "#/p5.Element")
94
// to proper reference routes ("/reference/p5/p5.Element/")
95
-function normalizeP5ReferenceLinks(html) {
+function normalizeP5ReferenceLinks(html: string | undefined): string | undefined {
96
if (!html) return html;
97
return html.replace(
98
/href="#\/(p5\.[^"]+)"/g,
99
'href="/reference/p5/$1/"'
100
);
101
}
102
+---
103
104
<Head title={entry.data.title} locale={currentLocale} />
105
0 commit comments