MacDownApp / macdown

Open source Markdown editor for macOS.
https://macdown.uranusjr.com/
9.45k stars 1.09k forks source link

if path contains '#', then image does not render in preview #1290

Open marc-medley opened 2 years ago

marc-medley commented 2 years ago

Issue

If a relative path segment contains #, then the referenced image does not render in preview.

Configuration

Test Files

test folder.zip

Expected Result

The expected result is achieved when the relative paths do not contain #.

test folder 
├── notes.md
└── notes_files
    └── blue.png

Screen Shot 2022-02-14 at 14 32 11

Unexpected Results

See the zip file of a failing test example which is attached in the above Test Files section. (The parent path of the relative path does not appear to have this issue in MacDown.)

test folder 
├── notes#.md
└── notes#_files
    └── blue.png

Screen Shot 2022-02-14 at 14 32 24