Compare commits

..

2 Commits

Author SHA1 Message Date
Gigi
c536de0144 chore: bump version to 0.1.9 2025-10-05 19:07:06 +01:00
Gigi
8e0970b717 fix: show markdown content immediately when finalHtml is empty
- Render markdown directly with ReactMarkdown when finalHtml is not ready yet
- Prevents empty content display while markdown is being converted to HTML
- Fixes issue where default article text doesn't show
2025-10-05 19:06:53 +01:00
2 changed files with 11 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "boris",
"version": "0.1.8",
"version": "0.1.9",
"description": "A minimal nostr client for bookmark management",
"type": "module",
"scripts": {

View File

@@ -190,8 +190,17 @@ const ContentPanel: React.FC<ContentPanelProps> = ({
className={markdown ? "reader-markdown" : "reader-html"}
dangerouslySetInnerHTML={{ __html: finalHtml }}
/>
) : markdown ? (
<div
ref={contentRef}
className="reader-markdown"
>
<ReactMarkdown remarkPlugins={[remarkGfm]}>
{markdown}
</ReactMarkdown>
</div>
) : (
<div className="reader-markdown" ref={contentRef} />
<div className="reader-html" ref={contentRef} />
)
) : (
<div className="reader empty">