style(markdown): align markdown number-quote links with reply quote styling

This commit is contained in:
plebeius
2026-02-10 16:28:04 +08:00
parent b8546a86c5
commit 35783ff627
2 changed files with 15 additions and 1 deletions
@@ -8,6 +8,16 @@
text-decoration: var(--post-content-link-text-decoration-hover);
}
.markdown .inlineQuoteLink a {
color: var(--post-quotelink-text-color);
text-decoration: var(--post-quotelink-text-decoration);
}
.markdown .inlineQuoteLink a:hover {
color: var(--post-quotelink-text-color-hover);
text-decoration: var(--post-quotelink-text-decoration-hover);
}
.hrWrapper {
padding: 0.5em 0;
}
+5 -1
View File
@@ -190,7 +190,11 @@ const renderAnchorLink = (children: React.ReactNode, href: string, threadPostCid
const numberQuoteMatch = href.match(NUMBER_QUOTE_HREF_REGEX);
if (numberQuoteMatch) {
const number = parseInt(numberQuoteMatch[1], 10);
return <NumberQuoteLink number={number} threadPostCid={threadPostCid} />;
return (
<span className={styles.inlineQuoteLink}>
<NumberQuoteLink number={number} threadPostCid={threadPostCid} />
</span>
);
}
// Check if this is a valid 5chan link that should be handled internally