Fix manual tables (#978)

This commit is contained in:
WithoutPants
2020-12-02 08:26:49 +11:00
committed by GitHub
parent c45780dc59
commit 6eea33aec9
3 changed files with 119 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import React, { useEffect, useState } from "react";
import ReactMarkdown from "react-markdown";
import gfm from "remark-gfm";
interface IPageProps {
// page is a markdown module
@@ -18,5 +19,7 @@ export const MarkdownPage: React.FC<IPageProps> = ({ page }) => {
}
}, [page, markdown]);
return <ReactMarkdown className="markdown" source={markdown} />;
return (
<ReactMarkdown className="markdown" source={markdown} plugins={[gfm]} />
);
};