@codemirror/lang-markdown
Advanced tools
Comparing version 6.2.4 to 6.2.5
@@ -0,1 +1,7 @@ | ||
## 6.2.5 (2024-04-12) | ||
### Bug fixes | ||
Disable folding for list nodes (since it will shadow the folding on the first list item). | ||
## 6.2.4 (2024-01-16) | ||
@@ -2,0 +8,0 @@ |
@@ -14,3 +14,3 @@ import { EditorSelection, countColumn, Prec, EditorState } from '@codemirror/state'; | ||
/*@__PURE__*/foldNodeProp.add(type => { | ||
return !type.is("Block") || type.is("Document") || isHeading(type) != null ? undefined | ||
return !type.is("Block") || type.is("Document") || isHeading(type) != null || isList(type) ? undefined | ||
: (tree, state) => ({ from: state.doc.lineAt(tree.from).to, to: tree.to }); | ||
@@ -31,2 +31,5 @@ }), | ||
} | ||
function isList(type) { | ||
return type.name == "OrderedList" || type.name == "BulletList"; | ||
} | ||
function findSectionEnd(headerNode, level) { | ||
@@ -33,0 +36,0 @@ let last = headerNode; |
{ | ||
"name": "@codemirror/lang-markdown", | ||
"version": "6.2.4", | ||
"version": "6.2.5", | ||
"description": "Markdown language support for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60496
966