diff --git a/src/Article.tsx b/src/Article.tsx index 36a382b..0697bb9 100644 --- a/src/Article.tsx +++ b/src/Article.tsx @@ -1,6 +1,6 @@ import { Tooltip } from "@kobalte/core"; import cn from "classnames"; -import { Component, lazy } from "solid-js"; +import { Component, children, lazy } from "solid-js"; import Spoiler from "~/Spoiler"; import Icon from "~/components/Icon"; import IconText from "~/components/IconText"; @@ -39,7 +39,6 @@ const Article: Component = (props) => { }, pre: (props: any) =>
,
         Img: (props: any) => {
-          // return ;
           return (
             
@@ -51,11 +50,26 @@ const Article: Component = (props) => {
); }, - + code: (props: any) => { + const { children: _c, ...rest } = $destructure(props); + const c = children(() => _c); + return ( + + {c()} + + ); + }, ul: (props: any) => (