Skip to content

Commit 9f2f330

Browse files
authored
Merge pull request #9224 from Chris2011/feature/markdown-image-support
Add support to show images in markdown preview.
2 parents c05e0a4 + e74ffac commit 9f2f330

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ide/markdown/src/org/netbeans/modules/markdown/MarkdownViewerElement.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ public void updateView() {
243243
HTMLEditorKit kit = (HTMLEditorKit) viewer.getEditorKit();
244244

245245
HTMLDocument doc = (HTMLDocument) viewer.getDocument();
246+
doc.setBase(dataObject.getPrimaryFile().getParent().toURL());
246247

247248
// Would be better to create some diff and update the changed elemets
248249
doc.remove(0, doc.getLength());

0 commit comments

Comments
 (0)