Skip to content

Commit

Permalink
fix: markdown styling
Browse files Browse the repository at this point in the history
  • Loading branch information
olliethedev committed Nov 11, 2023
1 parent f0604cf commit 4584510
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import remarkFootnotes from "remark-footnotes";

import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { vs } from "react-syntax-highlighter/dist/cjs/styles/prism";
import { Link } from "@aws-amplify/ui-react";
import { Divider, Link } from "@aws-amplify/ui-react";

const components: Components = {
code({ node, inline, className, children, ...props }: any) {
Expand All @@ -33,6 +33,9 @@ const components: Components = {
a({ node, ...props }: any) {
return <Link {...props} />;
},
hr({ node, ...props }: any) {
return <Divider marginTop="large" marginBottom="large" {...props} />;
},
};

const MemoizedReactMarkdown: FC<Options> = memo(
Expand Down

0 comments on commit 4584510

Please sign in to comment.