Is it possible to enable Markdown or rich text editing for the Description? #4739
microCloudCode
started this conversation in
Feature Requests
Replies: 1 comment 4 replies
-
Nothing prevents you from populating the Product Description field with Markdown text. The trick would be to format the description when you need to display it in your storefront application. E.g., you would do something like this: // my-product-page.jsx
// ...
import { useProduct } from "medusa-react"
export default function({ id }) {
const { product, isLoading } = useProduct(id)
if (isLoading) {
return (
<Skeleton />
)
}
return (
<div>
{/* ... */}
<SomeMarkdownRenderer content={product.description} />
</div>
)
} Unfortunately, the description input isn't rendered nicely in the Admin application so understand if the product management doesn't play as nicely as you would want, but you could solve this by adding an Admin Extension to the Product Details page that renders product description input. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to enable Markdown or rich text editing for the Description?
Beta Was this translation helpful? Give feedback.
All reactions