Skip to content

Commit 6aeffab

Browse files
ADDED: regexp for transforming text to <code>text</code> in shipping section
1 parent f2a1690 commit 6aeffab

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/ui/components/landing/Developers.astro

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,15 @@ const shipping = fillMonthsGaps(shippingData);
135135
<ul class="week-details">
136136
{value?.map((string) => (
137137
<li class="week-text">
138-
<div set:html={addNofollowToExternalLinks(string.replaceAll('</ul>\n', '</ul>'))}/>
138+
<div
139+
set:html={
140+
addNofollowToExternalLinks(
141+
string
142+
.replaceAll('</ul>\n', '</ul>')
143+
.replace(/`([^`]+)`/g, '<code>$1</code>')
144+
)
145+
}
146+
/>
139147
</li>
140148
))}
141149
</ul>

0 commit comments

Comments
 (0)