Skip to content

feat: add overlap option and support negative render_offset_top#350

Open
charlesg3 wants to merge 1 commit into3rd:masterfrom
charlesg3:feat/overlap-support
Open

feat: add overlap option and support negative render_offset_top#350
charlesg3 wants to merge 1 commit into3rd:masterfrom
charlesg3:feat/overlap-support

Conversation

@charlesg3
Copy link

Summary

  • Add overlap option to from_file() — specifies how many buffer lines the image covers, reducing virtual padding accordingly
  • Simplify render_offset_top handling to support negative values (allows shifting images upward)
  • When overlap exceeds image height, no virtual padding is added (image fits within existing buffer lines)

Fixes #349

…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.
@charlesg3 charlesg3 force-pushed the feat/overlap-support branch from f329d12 to a5d66dd Compare March 15, 2026 18:38
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.

Support overlap option to reduce virtual padding when image covers existing buffer lines

1 participant