diff --git a/app/(home)/article/[slug]/_components/movie.tsx b/app/(home)/article/[slug]/_components/movie.tsx index b72b3c6..0a218e3 100644 --- a/app/(home)/article/[slug]/_components/movie.tsx +++ b/app/(home)/article/[slug]/_components/movie.tsx @@ -379,6 +379,7 @@ const ArticleRender = memo(

{cue.text}

diff --git a/app/(home)/article/[slug]/_components/text.tsx b/app/(home)/article/[slug]/_components/text.tsx index e09fb7c..086714e 100644 --- a/app/(home)/article/[slug]/_components/text.tsx +++ b/app/(home)/article/[slug]/_components/text.tsx @@ -8,6 +8,7 @@ const Text = ({ content }: { content: string }) => { return ( diff --git a/app/(home)/article/[slug]/page.tsx b/app/(home)/article/[slug]/page.tsx index 7eb05bc..828e6e7 100644 --- a/app/(home)/article/[slug]/page.tsx +++ b/app/(home)/article/[slug]/page.tsx @@ -111,6 +111,7 @@ const SlugPage = async ({ }} // biome-ignore lint/security/noDangerouslySetInnerHtml: dangerouslySetInnerHTML={{ __html: article.title }} + lang="ko" />
{ return (
- {sortedArticles.map(async (article) => ( + {sortedArticles.map((article, index) => (
{ key={article.id} href={`/article/${article.id}`} className="block w-full" + prefetch={article.type === "TEXT" && index < 6} > { style={{ viewTransitionName: `article-title-${article.id}` }} // biome-ignore lint/security/noDangerouslySetInnerHtml: dangerouslySetInnerHTML={{ __html: article.title }} + lang="ko" />
{ const tHeader = useTranslations("Header"); - const [isInputFocused, setIsInputFocused] = useState(false); const [query, setQuery] = useState(""); const [results, setResults] = useState([]); const [searchIndex, setSearchIndex] = @@ -107,7 +106,7 @@ const Search = () => { }; return ( -
+
    {results.map((res) => (
  • - +
    {[tHeader(res.level), ...res.relativeReadablePath].join(" > ")}
    diff --git a/app/components/render-md-server.tsx b/app/components/render-md-server.tsx index 5a048c6..2eb8cb1 100644 --- a/app/components/render-md-server.tsx +++ b/app/components/render-md-server.tsx @@ -1,16 +1,22 @@ import { components } from "@/components/markdown-render"; import clsx from "clsx"; import { compileMDX } from "next-mdx-remote/rsc"; +import type { ComponentProps } from "react"; const RenderMDTextServer = async ({ text, className, -}: { text: string; className?: string }) => { + ...props +}: { text: string } & ComponentProps<"div">) => { const { content } = await compileMDX({ source: text, components: { ...components }, }); - return
    {content}
    ; + return ( +
    + {content} +
    + ); }; export { RenderMDTextServer };