Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codemirror/lang-markdown

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/lang-markdown - npm Package Compare versions

Comparing version 6.2.4 to 6.2.5

6

CHANGELOG.md

@@ -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 @@

5

dist/index.js

@@ -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;

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc