Commit f329d12
committed
feat: add overlap option to reduce virtual padding for overlapping images
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.1 parent da2be65 commit f329d12
2 files changed
Lines changed: 8 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
124 | | - | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 197 | + | |
202 | 198 | | |
203 | 199 | | |
204 | 200 | | |
| |||
317 | 313 | | |
318 | 314 | | |
319 | 315 | | |
320 | | - | |
| 316 | + | |
321 | 317 | | |
322 | | - | |
323 | | - | |
| 318 | + | |
| 319 | + | |
324 | 320 | | |
325 | 321 | | |
326 | 322 | | |
| |||
0 commit comments