diff --git a/docs/suspensive.org/src/components/HomePage.tsx b/docs/suspensive.org/src/components/HomePage.tsx
index a2808a73a..98e7cf6f7 100644
--- a/docs/suspensive.org/src/components/HomePage.tsx
+++ b/docs/suspensive.org/src/components/HomePage.tsx
@@ -3,6 +3,16 @@ import Image from 'next/image'
import { useRouter } from 'nextra/hooks'
import { Link } from 'nextra-theme-docs'
+const CodeBlockClassName = 'nextra-code'
+
+const escapeHtml = (text: string) =>
+ text.replace(//g, '>')
+
+const backtickToCodeBlock = (text: string) =>
+ text.replace(/`([^`]+)`/g, `$1
`)
+
+const formatCodeBlocks = (desc: string) => backtickToCodeBlock(escapeHtml(desc))
+
export const HomePage = ({
title,
description,
@@ -54,7 +64,10 @@ export const HomePage = ({
key={title}
>
{desc}
+ ))} diff --git a/docs/suspensive.org/src/pages/en/index.mdx b/docs/suspensive.org/src/pages/en/index.mdx index c29bf63d2..bf32e55aa 100644 --- a/docs/suspensive.org/src/pages/en/index.mdx +++ b/docs/suspensive.org/src/pages/en/index.mdx @@ -8,11 +8,11 @@ import { HomePage, Scrollycoding } from '@/components' items={[ { title: 'All Declarative APIs ready', - desc: '