Skip to content

fix(latex-renderer): offset inline images up one row for image.nvim v1.5+ - #1835

Open
brglng wants to merge 1 commit into
nvim-neorg:mainfrom
brglng:fix/image-nvim-v15-inline-offset
Open

fix(latex-renderer): offset inline images up one row for image.nvim v1.5+#1835
brglng wants to merge 1 commit into
nvim-neorg:mainfrom
brglng:fix/image-nvim-v15-inline-offset

Conversation

@brglng

@brglng brglng commented Sep 2, 2026

Copy link
Copy Markdown

image.nvim v1.5 resolves the anchor line via screenpos(lnum + 1) but its terminal backend then writes that 1-based screen row plus one more row, so every inline LaTeX image lands one row below the formula.

Cancel the drift with render_offset_top = -1 in core.integrations.image.

Tested in kitty with neorg's core.latex.renderer: images now render on the formula's line again (they were one row down with image.nvim v1.5.0+, e.g. after its 4670431).

…1.5+

image.nvim v1.5 resolves the anchor line via screenpos(lnum + 1) but its
terminal backend then writes that 1-based screen row plus one more row,
so rendered LaTeX landed one row below the formula. Cancel the drift
with render_offset_top = -1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant