diff --git a/frontend/src/pages/resource_details_page.tsx b/frontend/src/pages/resource_details_page.tsx index 493b430..a62c06c 100644 --- a/frontend/src/pages/resource_details_page.tsx +++ b/frontend/src/pages/resource_details_page.tsx @@ -239,6 +239,19 @@ function Article({resource}: { resource: ResourceDetails }) { return
{ + if (typeof props.children === "object" && (props.children as ReactElement).type === "strong") { + // @ts-ignore + const child = (props.children as ReactElement).props.children.toString() + if (child.startsWith(" + } + } + return

{props.children}

+ }, "a": ({node, ...props}) => { const href = props.href as string if (href.startsWith("https://store.steampowered.com/app/")) { @@ -289,7 +302,7 @@ function Article({resource}: { resource: ResourceDetails }) { // @ts-ignore if (img.type === "img") { return -
+
{img}