Support for DocC packages?

Viewed 17

Feature request: Search for images in a .docc folder in Resources/

When writing markdown for DocC, one can reference images with ![alt text](image base name), without specifing a path or extension. It'd be cool if Marked would do the same thing.

So, if I have this file hierarchy, I can write ![Order State Transition Diagram](OrderStateTransitions), and DocC will find and render the image properly:

Sources/meals/meals.docc
├── meals.md
└── Resources
    └── OrderStateTransitions.png

Note that it can handle variants automatically too, just by writing ![](diagram):

diagram.png           ← default
diagram~dark.png      ← dark mode variant
diagram@2x.png        ← 2× resolution
diagram~dark@2x.png   ← dark mode + 2×

Does this make sense?

(Also btw, the "Open Support Site" button on the in-app issue report UI goes to a 404).

1 Answers

I'll look into this, but it's not going to be top priority until I stable out all the bug reports after release. Added to the list though. And I'll take a look at the Open Support Site button.

Update: Given it wasn't a huge lift, I've added pretty good DocC support to version 3.0.17 (out now for Paddle, in review for Setapp, and a ways out for Mac App Store). But it now recognizes Resource/ directory files within a .docc folder, as well as the light/dark variations. And you can open a .docc folder directly and Marked will automatically preview the most recently-edited Markdown file in it (which has always been the behavior for folders).