generated from react18-tools/turborepo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Component Overrides
Mayank edited this page Jun 22, 2025
·
1 revision
Customize rendering of HTML tags:
import { Md, Unwrap, Omit } from "@m2d/react-markdown";
<Md
components={{
em: Unwrap, // Keep children, ignore <em> tag
blockquote: Omit, // Remove element entirely
code: MyCustomCode,
}}>
{`*This will be unwrapped*\n\n> This will be removed`}
</Md>-
Unwrap: renders children only -
Omit: removes the element and its children
Built with 💖 by Mayank Kumar Chaudhari · Sponsor · Courses