Skip to content

Images from /public are not displayed in markdown #9159

@vascotenner

Description

@vascotenner

Describe the bug

I pasted an image (crtl-v) in a markdown cell. Then it asks to enter a filename, and creates the code:

![alt](public\image.png)

When I exit the cell, it stays empty, not displaying the image.

Workaround:
Replace the markdown with a python cell with:

mo.image(("public/image.png"))

Will you submit a PR?

  • Yes

Environment

Details
{
  "marimo": "0.23.1",
  "editable": false,
  "location": "C:/Users/user/.virtualenvs/marimo/Lib/site-packages/marimo",
  "OS": "Windows",
  "OS Version": "11",
  "Processor": "Intel64 Family 6 Model 186 Stepping 2, GenuineIntel",
  "Python Version": "3.14.0",
  "Locale": "--",
  "Binaries": {
    "Browser": "--",
    "Node": "--",
    "uv": "--"
  },
  "Dependencies": {
    "click": "8.3.1",
    "docutils": "0.22.4",
    "itsdangerous": "2.2.0",
    "jedi": "0.19.2",
    "markdown": "3.10.2",
    "narwhals": "2.18.1",
    "packaging": "26.0",
    "psutil": "7.2.2",
    "pygments": "2.20.0",
    "pymdown-extensions": "10.21.2",
    "pyyaml": "6.0.3",
    "starlette": "1.0.0",
    "tomlkit": "0.14.0",
    "typing-extensions": "4.15.0",
    "uvicorn": "0.42.0",
    "websockets": "16.0"
  },
  "Optional Dependencies": {
    "loro": "1.10.3",
    "polars": "1.39.3"
  },
  "Experimental Flags": {}
}

Code to reproduce

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions