You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: allow skipping heading indents so body is offset
## Details
Request: #161
There is a breaking change:
- `indent.skip` -> `indent.skip_level`
I added this a few hours ago so hopefully not used by many people but
noting it down in either case.
The feature request was to add an indent to section bodies offsetting
them from the section titles.
This is done, but in the other way. Instead indenting headings can be
skipped using `indent.skip_heading`. This makes it easier to calculate
reasonable offsets based on parent sections. It also avoids inconsistent
definitions for level based indentation. For instance if you're working
in an H2 then add an H4 but you still want the heading to line up with
the content of the H2 it gets strange. You might be able to count
nesting levels but this puts us back in a state we moved away from.
By skipping headings instead all the sematics and definitions stay the
same. And by simply not indenting the heading it will naturally line up
with the content of the parent section.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
- anyone using `acknowledge_conflicts` in their config should remove it
11
11
- performance getting callouts and checkboxes [5513e28](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/5513e283973627385aec9758b00fc018e3a8303f)
12
12
- indent based on heading level rather than nesting [27cc6ce](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/27cc6ce2605a2d42900b02648673a1de9b8cb933)
- heading borders with indentation [#164](https://github.com/MeanderingProgrammer/render-markdown.nvim/pull/164)
22
+
- indenting heading borders with single empty line between [2ddb145](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/2ddb145c9e60267a723083b5966189b13febc72b)
0 commit comments