Back to Journal

The words arrived. Where are the pictures?

An illustrated Markdown document is usually more than one file. The relationship between those files is part of what you need to keep.

Bread notes.md opens on the other Mac. The recipe is there, the observations are there, and the photograph showing the dough at the right stage is a broken image.

The words made the journey because they were inside the Markdown file. The photograph did not because the file only contained its address.

This is an easy distinction to miss when a formatted editor presents words and images as a single continuous page. On disk, an illustrated document is often a small collection of files with relationships between them.

A relative path starts from somewhere

A typical local image reference might look like this:

![Dough after the first rise](images/first-rise.jpg)

The text in square brackets describes the image. The path in parentheses says where to find it. Here, the path begins from the Markdown document’s folder and points into an images folder.

If the files are arranged like this, the reference has a sensible destination:

Bread project/
  Bread notes.md
  images/
    first-rise.jpg

Move the complete Bread project folder and you preserve that relationship. Move only Bread notes.md to a different folder and the same relative path now asks for an image in a different place.

This is why a useful project boundary can be more than a filing convenience. It can collect the material that needs to travel together. The folder’s name is less important than the paths remaining meaningful inside it.

Check what is local and what is remote

An image address beginning with a website URL has a different dependency. Copying the document does not copy that image; it leaves the new reader dependent on the remote address and access to it.

An absolute local path has another problem. A path tied to a particular user’s folders may work on one Mac and point nowhere useful on another. Relative paths often suit a portable project better, provided the related files travel with it.

Do not assume every image-looking object in a document uses the same arrangement. Inspect the references when something matters. A caption can remain perfectly readable after the picture it describes has gone missing.

Move the collection, then open it

Clarity places imported local images in a sibling .clarity-assets folder beside the document. Keep that folder with the Markdown when moving files in Finder. Its export function copies Markdown and available linked local images into an export folder; it leaves web images and external references as links.

An export is useful for assembling those supported files, but it is not a promise that every item in a project folder has been copied. Unrelated source material may need separate handling. History and recovery records also stay on the original Mac.

Open the resulting document from the new location before putting the old copy away. Check the actual pictures, not just the presence of a folder with a reassuring name. If you are sharing the work, test the complete folder as it will be received.

And include the image files in your independent backup. A captured Markdown version can preserve the old image address while the file at that address has changed. For the bread notes, the useful recovery includes the photograph of the dough, not merely the words that once pointed to it.

A little more room to think.

A free, local Markdown hub for Mac.

Mac app details