nvim-orgmode / nvim-orgmode/orgmode

Parse the link inside figure block as url instead of expression

Open
#1,168 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Lua
Stars
3.9k
Forks
190
Avg merge
2d 13h
Merged PRs (30d)
7

Description

Does this feature exist in Emacs orgmode core?

N/A

Is code AI assisted/generated?

No

Orgmode link

No response

Feature value

As you can see if there is a link block outside of figure block it get correctly parsed as url and desc

Image

But same thing under a figure block renders as a expression

Image

The side effect of this is the image preview extension https://github.com/3rd/image.nvim can only preview the images outside of the figure block itself (which are links as of org format and not images technically)

Can we make it parse the link,desc and caption inside of figure block?

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported difference between a link outside a figure block and the same link inside one, then trace the Org-mode parser path that handles figure blocks. Confirm the link, description, and caption are represented as URL data rather than an expression, while preserving the existing image-preview behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.