markdown-preview-enhanced icon indicating copy to clipboard operation
markdown-preview-enhanced copied to clipboard

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

Open marc-medley opened this issue 3 years ago • 1 comments

Issue

If a path segment contains #, then the referenced image does not render in preview. This applies to both (1) the relative path and (2) the implied parent path of the relative segment.

Configuration

  • macOS Big Sur 11.6.3
  • Atom 1.59.0
  • markdown-preview-enhanced 0.19.1

Test Files

TestFolderExamples.zip

Expected Result

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

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

Screen Shot 2022-02-14 at 13 18 47

Unexpected Results

See the zip file of two failing test examples which is attached in the above Test Files section.

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

Screen Shot 2022-02-14 at 13 20 05

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

Screen Shot 2022-02-14 at 13 52 39

marc-medley avatar Feb 14 '22 22:02 marc-medley

A question mark ? in the parent path on macOS has a similar issue.

marc-medley avatar Feb 28 '22 22:02 marc-medley