From 33b6ce50a0c480c56dd5275287f10655f8b120da Mon Sep 17 00:00:00 2001
From: martapanc <marta.panc@gmail.com>
Date: Mon, 12 Feb 2024 11:09:56 +0100
Subject: [PATCH] chore: fix rehypeRaw plugin settings

---
 src/components/organisms/cv/Intro.tsx    | 6 +-----
 src/components/pages/recruiters-page.tsx | 5 ++---
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/components/organisms/cv/Intro.tsx b/src/components/organisms/cv/Intro.tsx
index c190520..d8a97f0 100644
--- a/src/components/organisms/cv/Intro.tsx
+++ b/src/components/organisms/cv/Intro.tsx
@@ -3,7 +3,6 @@
 import * as React from 'react';
 import ReactMarkdown from 'react-markdown';
 import rehypeRaw from 'rehype-raw';
-import { Pluggable } from 'unified';
 
 import SectionHeading from '@/components/atoms/headings/SectionHeading';
 
@@ -19,10 +18,7 @@ const Intro = ({ intro }: IntroProps) => {
       <SectionHeading titlePrefix='cv.softwareDevelopment' />
 
       <div className='mb-6 cv-intro-section'>
-        <ReactMarkdown
-          className='text-justify'
-          rehypePlugins={[rehypeRaw as Pluggable]}
-        >
+        <ReactMarkdown className='text-justify' rehypePlugins={[rehypeRaw]}>
           {intro.replace('8', noOfYears)}
         </ReactMarkdown>
       </div>
diff --git a/src/components/pages/recruiters-page.tsx b/src/components/pages/recruiters-page.tsx
index 43edaf3..9e21179 100644
--- a/src/components/pages/recruiters-page.tsx
+++ b/src/components/pages/recruiters-page.tsx
@@ -1,7 +1,6 @@
 import * as React from 'react';
 import ReactMarkdown from 'react-markdown';
 import rehypeRaw from 'rehype-raw';
-import { Pluggable } from 'unified';
 
 import styles from '@/styles/modules/recruiters.module.css';
 
@@ -39,7 +38,7 @@ export default function RecruitersPage({
 
         <ReactMarkdown
           className={clsxm(styles['recruiters-info'], 'mb-2')}
-          rehypePlugins={[rehypeRaw as Pluggable]}
+          rehypePlugins={[rehypeRaw]}
         >
           {recruitersData.markdownSections[0].content}
         </ReactMarkdown>
@@ -48,7 +47,7 @@ export default function RecruitersPage({
 
         <ReactMarkdown
           className={clsxm(styles['recruiters-info'], 'mb-4')}
-          rehypePlugins={[rehypeRaw as Pluggable]}
+          rehypePlugins={[rehypeRaw]}
         >
           {recruitersData.markdownSections[1].content}
         </ReactMarkdown>