Skip to content

fix: show note images in session previews#4571

Merged
ComputelessComputer merged 2 commits intomainfrom
c-branch-6
Mar 14, 2026
Merged

fix: show note images in session previews#4571
ComputelessComputer merged 2 commits intomainfrom
c-branch-6

Conversation

@ComputelessComputer
Copy link
Collaborator

  • detect images in raw note content before choosing the preview source
  • prefer raw note content over enhanced notes when the raw note includes images
  • render markdown image syntax directly in the preview card instead of collapsing it to plain text

@netlify
Copy link

netlify bot commented Mar 13, 2026

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit 8f3cf4d
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/69b44f39048c4f0008075356
😎 Deploy Preview https://deploy-preview-4571--hyprnote-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Mar 13, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 8f3cf4d
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69b44f39826e8f000897d55b
😎 Deploy Preview https://deploy-preview-4571--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Enhance session preview cards to display images from markdown and
Tiptap content. Add image parsing functionality to detect and extract images from both raw markdown and enhanced content. Prioritize raw content when images are present to preserve visual elements.

Implement custom image component with styling and metadata parsing. Add regex-based detection for markdown images and HTML img tags. Configure rehype plugins for proper image rendering in previews.
Remove border styling from session preview card images to create a cleaner appearance. Add visual feedback for selected images in
the tiptap editor by applying a ring border and background when the image is focused or selected by the user.
@ComputelessComputer ComputelessComputer merged commit bee6cbb into main Mar 14, 2026
13 of 15 checks passed
@ComputelessComputer ComputelessComputer deleted the c-branch-6 branch March 14, 2026 08:27
jack-jackhui pushed a commit to jack-jackhui/char that referenced this pull request Mar 15, 2026
* feat: add image support to session preview cards

Enhance session preview cards to display images from markdown and
Tiptap content. Add image parsing functionality to detect and extract images from both raw markdown and enhanced content. Prioritize raw content when images are present to preserve visual elements.

Implement custom image component with styling and metadata parsing. Add regex-based detection for markdown images and HTML img tags. Configure rehype plugins for proper image rendering in previews.

* style: Remove borders and add selection state to images

Remove border styling from session preview card images to create a cleaner appearance. Add visual feedback for selected images in
the tiptap editor by applying a ring border and background when the image is focused or selected by the user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant