Marked 2 doesn't serve images in subdirectories whose names begin with underscore
Marked 2, nvUltra, MultimarkdownComposer can show this image.
| images/obelix.png | | :---------: | | ![images/obelix.png](images/obelix.png) |
But Marked 2 cannot show this one, and I cannot figure out any way to escape the underscore or do anything to make it work.
| _assets/obelix.png | | :---------: | | ![_assets/obelix.png](_assets/obelix.png) |
Is there a way to get Marked 2 to read the file in _assets?
|?||Show this help|
|ESC||Blurs the current field|
|r||Focus the comment reply box|
|^ + ↩||Submit the comment|
You can use
Command ⌘ instead of
Control ^ on Mac
1 Posted by zabouti on 26 Jan, 2021 12:40 AM
This is driving me crazy. I just discovered that this works!
Support Staff 2 Posted by Brett on 26 Jan, 2021 01:53 AM
if you take the underscore out of the first square brackets (but not out of the actual file path), does it work?
3 Posted by zabouti on 26 Jan, 2021 02:04 AM
Yes, you sneaky guy! Thank you!
zabouti closed this discussion on 26 Jan, 2021 02:04 AM.
Brett re-opened this discussion on 26 Jan, 2021 02:47 PM
Support Staff 4 Posted by Brett on 26 Jan, 2021 02:47 PM
It's because the processor is seeing the two underscores and assuming
that it's an italics string, thereby breaking everything in between.
It's an issue with the renderer, not necessarily with Marked. Which
processor are you using again?
5 Posted by zabouti on 26 Jan, 2021 10:48 PM
Version 2.6.2 (1010) - The MultiMarkdown Processor is selected.
Support Staff 6 Posted by Brett on 27 Jan, 2021 03:08 PM
I did some testing. The Discount (GFM) processor handles it much better.
But for MultiMarkdown, you can escape it like this:
| _assets/obelix.png |
| :---------: |
| ![\_assets/obelix.png](_assets/obelix.png) |
And it should work fine.