diff --git a/src/components/current/Markdown.tsx b/src/components/current/Markdown.tsx index 7561c3cb..97ec7a47 100644 --- a/src/components/current/Markdown.tsx +++ b/src/components/current/Markdown.tsx @@ -1,16 +1,25 @@ +import React, { ReactNode } from 'react'; import ReactMarkdown from 'react-markdown'; //====================================== export const Markdown = ({ children }: { children: string }) => { + // regex to match URLs in text that arent already formatted as links in markdown + const urlRegex = /(? `[${url}](${url})`); + return (