-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Markdown|OPML export with image assets sidecar folder (macOS) #204
Comments
Thanks for the detailed and well thought out enhancement request. I have considered doing something like Sidecar Folders in the past and ruled it out. I can't remember why at the moment though. Most likely it was because the lack of standardization in the respective specs. Certainly the issue is worth revisiting to see if that decision was valid or not. If you need something like this immediately, you could write a shortcut for it. Look at the Archive Account shortcut in Shortcut Examples to get an idea of how it could be done. |
Thanks.
Here are some thoughts related to the "standardization" aspect of this issue:
|
I'm sold. Look for this in a future release. |
Problem
Both the Markdown
*.md
and OPML*.opml
exported files (on macOS) reference the images used in the outline. However, the images are not actually exported. The absence of the image assets leaves the export as "incomplete".Example_Outline.md exported image reference:
Example_Outline.opml exported image reference:
Candidate Solution: Asset Files Sidecar Folder
A candidate solution would be to export the images in original form (e.g.,
*.jpg
,*.png
, …) into a sidecar folder. The addition of the sidecar folder with image assets would provide the user with a "complete" export of both text and images in an accessible, editable, and post-processable form.*_files
sidecar folder*.md
and*.opml
files.Example_Outline.md relative path reference:
Example_Outline.opml relative path reference:
Discussion
Markdown
Many Markdown renderers will display images directly with a relative address to a sidecard
*_files
folder …i.e. no additional Markdown postprocessing needed in these scenarios. Contexts where I've successfully used a*_files
assets sidecar folder for Markdown are:Checkout the GitHub markdown file md_evaluation.md which is an example that uses assets in md_evaluation_files.
OPML
The OPML 2.0 Specification does not provide any expressly stated provisions on how to handle images. Thus, how images are handled is not generally portable between OPML compatible applications. Even so, the export of images into an OPML
*_files
sidecar folder provides the benefits:*_files
sidecar.Possible Enhancement
Human Readable Image Filenames
Ideally the original filename would also be stored and then later used as the exported image's filename. Reusing the user's original filename aligns with a core Markdown objective to keep Markdown text human readible.
Export filename-collision-avoidance strategies, while still keeping a human readable name, could include:
_WxH
to images with same name that are of different sizes._WxH
provides additional useful information to the user.Book_000.png
andBook_001.png
Example_Outline folder tree with human readable image names:
Example_Outline.md with human readable relative path reference:
The text was updated successfully, but these errors were encountered: