fix: show note images in session previews#4571
Merged
ComputelessComputer merged 2 commits intomainfrom Mar 14, 2026
Merged
Conversation
Collaborator
ComputelessComputer
commented
Mar 13, 2026
- 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
✅ Deploy Preview for hyprnote-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for hyprnote ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
b9d3258 to
6097fa6
Compare
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.
6097fa6 to
8f3cf4d
Compare
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.