mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-05 16:02:19 +00:00
fix rendering
This commit is contained in:
parent
28f5cbbfe9
commit
4543765e3a
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ interface MarkdownViewProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|||
|
||||
function MarkdownView(props: MarkdownViewProps) {
|
||||
const [local, rest] = splitProps(props, ["markdown"])
|
||||
const [html] = createResource(async () => {
|
||||
return marked.parse(local.markdown)
|
||||
const [html] = createResource(() => local.markdown, async (markdown) => {
|
||||
return marked.parse(markdown)
|
||||
})
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue