aboutsummaryrefslogtreecommitdiff
path: root/components/Markdown/index.tsx
blob: b6def4f7838a375c1ac006ccabc661e8af44027f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React, { FC } from 'react';

import clsx from 'clsx';

interface MarkdownProps {
    md: string;
    className?: string;
}

const Markdown : FC<MarkdownProps> = ({md, className}) => {

  const prerendered = (
    <div
        dangerouslySetInnerHTML={{
            __html: md
        }}
    />
  );

  return prerendered;
};

export type {
    MarkdownProps
};

export default Markdown;