Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Sep 27, 2024
1 parent a098643 commit cd18cd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/renderer/src/lib/parse-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const parseHtml = (
const children = Array.isArray(propsChildren)
? propsChildren.find((i) => i.type === "code")
: propsChildren
// children might be undefined due to `find`

if (!children) return null

if (
Expand Down
7 changes: 5 additions & 2 deletions apps/renderer/src/modules/entry-content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const EntryContentRender: Component<{
noMedia={noMedia}
accessory={contentAccessories}
as="article"
className="prose !max-w-full dark:prose-invert prose-h1:text-[1.6em]"
className="prose !max-w-full dark:prose-invert prose-h1:text-[1.6em] prose-h1:font-bold"
style={stableRenderStyle}
renderInlineStyle={readerRenderInlineStyle}
>
Expand Down Expand Up @@ -303,7 +303,10 @@ const ReadabilityContent = ({ entryId }: { entryId: string }) => {
</div>
)}

<HTML as="article" className="prose dark:prose-invert prose-h1:text-[1.6em]">
<HTML
as="article"
className="prose dark:prose-invert prose-h1:text-[1.6em] prose-h1:font-bold"
>
{result?.content ?? ""}
</HTML>
</div>
Expand Down

0 comments on commit cd18cd9

Please sign in to comment.