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
chore(refactor): move component tables out of context
## Details
Rather than storing the callouts, checkboxes, & offsets tables directly
in Context, take a similar approach as Conceal and move these into their
own modules and store an instance of each in Context.
Makes them easier to change in isolation without adding more overhead to
the Context. Store the node associated with checkboxes & callouts,
currently unused but will be in a follow up.
Other changes:
- make base `render` parent call `setup` on each instance as part of the
call to `new`, return `nil` if false, handle `nil` where these are
used, make `setup` protected, rename main `render` method to `run`
- add more general `query` method to `View` module, allows us to avoid
exposing any state directly by removing `for_each`
- move `percent` calculation out of `Context` and into `Env`, since it
only depends on the window, remove `width` method
- update `Conceal` node range logic to return 4 ints instead of a table
- fix overload return types for `Env.buf.get`
- `renderers` -> `modules`, `renderer` -> `module`
- rename list_item capture `bullet` -> `list`
- update CHANGELOG
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
@@ -18,6 +18,8 @@
18
18
- use conceal lines for setext heading underline [78ffe3b](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/78ffe3b0500bbc7e37fabde723d96661538e8b32)
- use selene to prevent accidental print statements [7f81e9d](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/7f81e9dcc15504c044f20df39d28a590cd5c6ca5)
21
+
- configurable indent for first line of paragraph [#417](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/417)
0 commit comments