Get AI summaries of any video or article — Sign up free
Block reference parts of images just like text with Obsidian Excalidraw thumbnail

Block reference parts of images just like text with Obsidian Excalidraw

5 min read

Based on Zsolt's Visual Personal Knowledge Management's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Excalidraw references let authors transclude only the relevant part of an image into markdown while keeping clickable navigation back to the full drawing.

Briefing

Linking a zoomed-in “piece” of an image to the exact place it came from has long been a pain in Obsidian-style note systems: copying a big image and then manually cropping parts breaks the connection, forcing readers (and authors) to hunt for provenance. Obsidian Excalidraw’s new block/section reference transclusion feature fixes that by letting users name a region inside a drawing and then embed only the relevant portion back into markdown—while keeping clickable navigation back to the source area in the full image.

The workflow starts with Excalidraw’s embedding options for markdown. Excalidraw supports three embedding modes: a markdown text embed, a text-area embed (the referenced text element plus surrounding padding), and an element-group embed (the entire group containing the referenced element, with nothing else from the drawing). On top of that, the system distinguishes between block references and section references, and it offers two drawing export formats: SVG (default) and PNG. Several of the more precise behaviors—especially around “area” transclusion—depend on using SVG.

In practice, a control-click on a referenced text element creates a link that can be pasted into markdown. Adding parameters like “area” or “group” changes what gets transcluded when the link is rendered. A block reference shows only the referenced text element itself. An area reference transcludes a cut-out around that element, including padding so the context isn’t lost. A group reference transcludes the entire group the element belongs to, which is useful when the “piece” is meaningful only as part of a larger composite (for example, a labeled figure assembled from multiple shapes). The transcript also highlights a subtle but important behavior: group transclusion is limited to elements actually in the group. If a shape sits visually inside the larger drawing but is not part of the referenced group, it won’t appear when transcluding the group.

The link-copying UI makes these reference types fast to generate using modifier keys: control/command-click copies a group reference, shift-click copies an area reference, and a plain click copies a block reference. The transcript notes a surprising edge case: when only a block reference is copied, transclusion may include less than expected because of how Excalidraw structures markdown paragraphs—sometimes a “block” is only the final paragraph containing the reference, not the entire section above it. Switching from SVG to PNG reveals another limitation: with PNG embeds, area transclusion breaks down. Instead of respecting the area cut-out, the system can end up transcluding the entire image, and the “area” option is effectively ignored.

Finally, the transcript warns about reference validity. Copying a block reference for a non-text element can produce errors if that block reference can’t be found in markdown. Prepending “group” can avoid the failure by transcluding a valid group context, though it changes what appears (e.g., including padding around the target region).

To make a complex annotated image usable—using a Peter Bruegel painting example—the creator applies practical canvas tricks: resizing the base image to fit sticky-note label boxes, locking the image so annotations don’t shift it, and setting annotation strokes to transparent after finishing so they can be toggled back to visible quickly with a select-all and color change. The result is a more reliable, navigable way to connect image regions to notes without losing the “big picture” context.

Cornell Notes

Obsidian Excalidraw adds clickable image-region linking by letting users reference parts of a drawing as block or section links and then transclude the matching content into markdown. A block reference shows only the referenced text element; an area reference includes a padded cut-out around it; a group reference pulls in the entire group that contains the element. Modifier keys (control/command, shift, or plain click) generate the right reference type for pasting into markdown. SVG embeds support area transclusion reliably, while PNG embeds can ignore the area option and transclude the whole image instead. The feature also depends on correct reference context—non-text block references may error unless wrapped as a group reference.

How does Excalidraw keep a “zoomed-in image part” connected to the “big picture” in Obsidian notes?

Instead of cropping and losing provenance, Excalidraw lets users create a named reference to a text element (or its surrounding structure) inside the drawing. That reference is pasted into markdown so the relevant portion is transcluded back into the note. Clicking the embedded reference jumps back to the original location in the full drawing, preserving navigation between the overview and the detail.

What’s the practical difference between block, area, and group references?

A block reference transcludes only the referenced text element itself. An area reference transcludes a cut-out around that element, including padding so the context isn’t clipped too tightly. A group reference transcludes the entire group containing the element—useful when the “piece” is meaningful only as part of a composed set. Elements that are visually nearby but not actually in the referenced group won’t appear in the group transclusion.

Why can a copied link sometimes transclude less than expected (e.g., only “discussion” instead of the whole agenda)?

The pasted reference lands in Excalidraw’s generated markdown structure. If the copied block reference sits in a separate paragraph from the section content, Obsidian may treat it as only that paragraph’s block. In the example, transcluding the section agenda brought in the full agenda list, while transcluding only the block reference pulled in only the later block (the “discussion” paragraph).

What changes when switching from SVG embeds to PNG embeds?

SVG mode supports precise area transclusion. After switching to PNG in Excalidraw settings (embed/export section), area transclusion can fail: the system may transclude the entire image and effectively ignore the area selector. The transcript demonstrates this with a “blob” region—area cut-outs don’t behave as intended under PNG.

What error can occur when copying a block reference for a non-text element, and how can it be avoided?

If a block reference points to something that doesn’t exist as a resolvable block in markdown, Obsidian throws an error (“block reference cannot be found”). Adding “group” in front can make the reference resolvable by transcluding a group context instead. The tradeoff is that group transclusion may include extra padding/nearby elements compared with a tight area cut-out.

Which canvas tweaks make complex annotated images easier to manage?

For the Peter Bruegel painting example, the creator resized the base image so sticky-note label boxes fit cleanly, locked the picture so annotations wouldn’t accidentally move it, and then set annotation strokes to transparent after finishing. Later, a select-all plus stroke color change makes labels visible again quickly.

Review Questions

  1. When would you choose an area reference over a group reference, and what visual artifacts can appear if the wrong one is used?
  2. How do SVG and PNG embeds differ in their support for area transclusion, and what symptom indicates the PNG limitation?
  3. What markdown-structure detail can cause a copied block reference to transclude only part of the intended section?

Key Points

  1. 1

    Excalidraw references let authors transclude only the relevant part of an image into markdown while keeping clickable navigation back to the full drawing.

  2. 2

    Block references show only the referenced text element; area references include a padded cut-out; group references transclude the entire group containing the element.

  3. 3

    Modifier-key clicking in Excalidraw’s menu generates group (control/command), area (shift), or block (plain click) references for pasting into Obsidian.

  4. 4

    SVG embeds support area transclusion reliably, while PNG embeds can ignore the area selector and transclude the whole image.

  5. 5

    Block references for non-text elements can fail if the reference can’t be resolved in markdown; using a group reference can prevent the error.

  6. 6

    Practical annotation workflow improves results: resize the base image, lock it before adding sticky notes, and toggle annotation visibility by changing stroke color to transparent/black.

Highlights

Area transclusion works as a true cut-out in SVG mode, but can collapse into full-image transclusion after switching to PNG embeds.
Group transclusion is strictly limited to elements inside the referenced group—nearby shapes outside the group won’t appear.
A copied block reference may transclude only a single paragraph because of how Excalidraw structures markdown, even when the visual intent is “include the whole section.”

Topics

Mentioned