diff --git a/app/[lang]/[pageId]/markdown.tsx b/app/[lang]/[pageId]/markdown.tsx deleted file mode 100644 index a9d574a..0000000 --- a/app/[lang]/[pageId]/markdown.tsx +++ /dev/null @@ -1,166 +0,0 @@ -import Markdown, { Components, ExtraProps } from "react-markdown"; -import remarkGfm from "remark-gfm"; -import removeComments from "remark-remove-comments"; -import remarkCjkFriendly from "remark-cjk-friendly"; -import { EditorComponent } from "@/terminal/editor"; -import { ExecFile } from "@/terminal/exec"; -import { JSX, ReactNode } from "react"; -import { langConstants, MarkdownLang } from "@my-code/runtime/languages"; -import { ReplTerminal } from "@/terminal/repl"; -import { StyledSyntaxHighlighter } from "./styledSyntaxHighlighter"; - -export function StyledMarkdown({ content }: { content: string }) { - return ( - - {content} - - ); -} - -// TailwindCSSがh1などのタグのスタイルを消してしまうので、手動でスタイルを指定する必要がある -const components: Components = { - h1: ({ children }) => {children}, - h2: ({ children }) => {children}, - h3: ({ children }) => {children}, - h4: ({ children }) => {children}, - h5: ({ children }) => {children}, - h6: ({ children }) => {children}, - p: ({ node, ...props }) =>

, - ul: ({ node, ...props }) => ( -