Skip to content

Embedded images not parsed correctly #655

@janfari

Description

@janfari

Describe the bug

Jupyter notebooks offer support for directly embedding images without creating a separate file. As I understand it, the image is embedded directly into the raw code for the notebook. It ends up showing up like this in the markdown:

### **Sense Lines**
![image.png](attachment:image.png)

### **Our Amplifier**
![image.png](attachment:6cb9da51-8140-4357-914d-17921dfbeaf5.png)

### **Standard Differential Amp:**
![opamp18.gif](attachment:0957d379-efea-4a72-ba57-bb7c0ec91f33.gif)

I expect these images to be parsed like images that are included as seperate files but MyST doesn't seem to recognize or parse them as images. The sphinx output shows just the text "image.png" instead of the image.

Are there any setting needed to enable this or is this just unsupported at this time? Thank you!

Reproduce the bug

  1. Create a jupyter notebook
  2. Drag and drop in an image which should create an embedded attachment
  3. Try to parse the notebook with MyST-NB

List your environment

Python 3.10.12
Sphinx 8.1.3
sphinx-adc-theme 0.1.7
sphinxcontrib-applehelp 2.0.0
sphinxcontrib-devhelp 2.0.0
sphinxcontrib-htmlhelp 2.1.0
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 2.0.0
sphinxcontrib-serializinghtml 2.0.0
myst-nb 1.1.2
myst-parser 4.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions