file: links inside special blocks are not rewritten #5

closed cmc opened this on 2026-10-21 05:56 UTC

Discussion

cmc 2026-10-21 05:56 UTC

[[file:other.org][...]] links inside a special block (#+begin_NAME ... #+end_NAME) are emitted verbatim instead of being resolved to the target page's output URL. The same link outside the block resolves correctly.

Repro (orgo 0.24.0):

#+title: Test

Outside: [[file:2026-09-13-nowhere-specifically.org][Nowhere]]

#+begin_seealso
Inside: [[file:2026-09-13-nowhere-specifically.org][Nowhere]]
#+end_seealso

Output:

<p>Outside: <a href="nowhere-specifically.html">Nowhere</a></p>
<div class="seealso">
<p>Inside: <a href="2026-09-13-nowhere-specifically.org">Nowhere</a></p>
</div>

orgo build --strict reports 0 unresolved links, so the broken link also escapes the link check.

Expected: links inside special blocks are resolved and checked the same as links in ordinary paragraphs.

closed by cmc in commit c8890b8d94: Resolve links inside special blocks and captions

2026-10-21 06:00 UTC