updated following page and note connector

This commit is contained in:
Ren Amamiya
2023-03-16 14:54:31 +07:00
parent 123d22d5cf
commit 9d96e3b5fd
13 changed files with 99 additions and 181 deletions

View File

@@ -14,7 +14,7 @@ const MarkdownPreview = dynamic(() => import('@uiw/react-markdown-preview'), {
export const Content = memo(function Content({ data }: { data: any }) {
const [preview, setPreview] = useState({});
const content = useRef(data.content);
const content = useRef(JSON.parse(data.content));
const urls = useMemo(
() =>
content.current.match(