diff --git a/src/lib/markup.tsx b/src/lib/markup.tsx index 05c2643..7cd294f 100644 --- a/src/lib/markup.tsx +++ b/src/lib/markup.tsx @@ -16,7 +16,7 @@ function parseInline(text: string, keyPrefix: string): React.ReactNode[] { parts.push(text.slice(lastIndex, match.index)); } if (match[2]) { - parts.push({match[2]}); + parts.push({match[2]}); } else if (match[3]) { parts.push({match[3]}); } @@ -47,7 +47,7 @@ export function formatMarkup(text: string): React.ReactNode { // ## Heading if (trimmed.startsWith("## ")) { elements.push( - + {parseInline(trimmed.slice(3), `h${key}`)} );