Skip to content

Commit

Permalink
chore: fix rehypeRaw plugin settings
Browse files Browse the repository at this point in the history
  • Loading branch information
martapanc committed Feb 12, 2024
1 parent f18c5e3 commit 33b6ce5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 1 addition & 5 deletions src/components/organisms/cv/Intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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>
Expand Down
5 changes: 2 additions & 3 deletions src/components/pages/recruiters-page.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 33b6ce5

Please sign in to comment.