Skip to content

Commit

Permalink
fix: add markdown compilation to testimonial text
Browse files Browse the repository at this point in the history
  • Loading branch information
julrich committed Dec 4, 2024
1 parent f9608e3 commit bb429f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/testimonial/TestimonialComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { forwardRef, createContext, useContext, HTMLAttributes } from "react";
import { TestimonialProps } from "./TestimonialProps";
import { TextMedia } from "@kickstartds/base/lib/text-media";

import { compiler } from "markdown-to-jsx";

export type { TestimonialProps };

export const TestimonialContextDefault = forwardRef<
Expand All @@ -23,7 +25,7 @@ export const TestimonialContextDefault = forwardRef<
text={quote}
renderText={() => (
<>
"{quote}"
"{compiler(quote)}"
<br />
<br />
<b>{name}</b>
Expand Down
2 changes: 1 addition & 1 deletion src/components/testimonials/Testimonials.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const Simple: Story = {
args: pack({
testimonial: [
{
quote: `Working with Systemics technology has been a game-changer for our brand. Their design system expertise brought harmony to our user experiences, making our digital platforms not just functional, but truly captivating.`,
quote: `Working with **Systemics** technology has been a game-changer for our brand. Their design system expertise brought harmony to our user experiences, making our digital platforms not just functional, but truly captivating.`,
image: {
src: "img/people/author-emily.png",
alt: "Alt Text Customer 1",
Expand Down

0 comments on commit bb429f2

Please sign in to comment.