@codemirror/fold
Advanced tools
Changelog
0.19.4 (2022-04-19)
Make sure the fold gutter is updated when the syntax tree changes.
Changelog
0.19.3 (2022-01-24)
foldGutter
now takes a domEventHandlers
option to register additional event handlers for the gutter.
Changelog
0.19.1 (2021-10-25)
The placeholderDOM
option now gets the view and an event handler function as arguments.
Changelog
0.18.2 (2021-08-07)
The fold gutter now accepts a markerDOM
option, which can be used to override the way gutter markers are rendered. Fix typo issue
Changelog
0.18.1 (2021-04-30)
The fold gutter will now properly update when the editor's language config changes.
Fix an issue where the fold gutter could get out of date when changes below a given line affected the fold marker for that line.
The package now exports a foldedRanges
function that can be used to query set of folded ranges in an editor state.
The newly exported foldEffect
and unfoldEffect
state effects can be used to control the fold state directly.
Changelog
0.18.0 (2021-03-03)
Adds a screen reader announcement when code is folded or unfolded.