Skip to content

Fixed markdown preview not rendering images - #50

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/markdown-images
Apr 16, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:bugfix/markdown-images

Conversation

@oleg68

@oleg68 oleg68 commented Apr 15, 2026 •

Copy link
Copy Markdown
Collaborator

Added support for alt image syntax in MarkdownRenderer: added image group to the INLINE regex (before links, so ![ is not consumed by the link branch), emitted tags, and added a createOutputPane(html, baseDirPath) overload that sets the HTMLDocument base URL so relative image paths resolve correctly. openLive() now passes the file's parent directory as the base.

Added support for ![alt](src) image syntax in MarkdownRenderer: added
image group to the INLINE regex (before links, so ![ is not consumed
by the link branch), emitted <img> tags, and added a
createOutputPane(html, baseDirPath) overload that sets the HTMLDocument
base URL so relative image paths resolve correctly. openLive() now
passes the file's parent directory as the base.

Resolves: nbplugins#48

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 5fdfdf6 into nbplugins:main Apr 16, 2026
3 checks passed
@oleg68
oleg68 deleted the bugfix/markdown-images branch April 16, 2026 06:27
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