fix(latex-renderer): offset inline images up one row for image.nvim v1.5+ - #1835
Open
brglng wants to merge 1 commit into
Open
fix(latex-renderer): offset inline images up one row for image.nvim v1.5+#1835brglng wants to merge 1 commit into
brglng wants to merge 1 commit into
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 = -1incore.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).