nvim-orgmode / nvim-orgmode/orgmode
Parse the link inside figure block as url instead of expression
Nobody has claimed this yet.
- 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
But same thing under a figure block renders as a expression
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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