fix: update inline code styling in markdown-text component for improved readability and consistency

This commit is contained in:
Anish Sarkar 2026-03-29 04:43:18 +05:30
parent 65bd83b167
commit dc034a98eb

View file

@ -419,9 +419,11 @@ const defaultComponents = memoizeMarkdownComponents({
if (!isCodeBlock) { if (!isCodeBlock) {
return ( return (
<code <code
className={cn("aui-md-inline-code rounded border bg-muted font-semibold", className)} className={cn("aui-md-inline-code rounded-md border bg-muted px-1.5 py-0.5 font-mono text-[0.9em] font-normal", className)}
{...props} {...props}
/> >
{children}
</code>
); );
} }
const language = /language-(\w+)/.exec(className || "")?.[1] ?? "text"; const language = /language-(\w+)/.exec(className || "")?.[1] ?? "text";