feat: add overlap option and support negative render_offset_top#350
Open
charlesg3 wants to merge 1 commit into3rd:masterfrom
Open
feat: add overlap option and support negative render_offset_top#350charlesg3 wants to merge 1 commit into3rd:masterfrom
charlesg3 wants to merge 1 commit into3rd:masterfrom
Conversation
…ages When an image overlaps existing buffer lines (e.g. a rendered diagram overlapping its code block), the new `overlap` option specifies how many buffer lines the image covers. Virtual padding is reduced accordingly so content below isn't pushed down unnecessarily. Also simplifies render_offset_top handling to support negative values, allowing images to be shifted upward relative to their anchor position.
f329d12 to
a5d66dd
Compare
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.
Summary
overlapoption tofrom_file()— specifies how many buffer lines the image covers, reducing virtual padding accordinglyrender_offset_tophandling to support negative values (allows shifting images upward)overlapexceeds image height, no virtual padding is added (image fits within existing buffer lines)Fixes #349