Socket
Socket
Sign inDemoInstall

@codemirror/lang-markdown

Package Overview
Dependencies
Maintainers
2
Versions
33
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.1 to 6.2.2

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 6.2.2 (2023-10-06)
### Bug fixes
Fix a bug in `insertNewlineContinueMarkup` that caused it to put the cursor in the wrong place when the editor's line break was more than one character long.
## 6.2.1 (2023-09-14)

@@ -2,0 +8,0 @@

11

dist/index.js

@@ -244,4 +244,5 @@ import { EditorSelection, countColumn, Prec, EditorState } from '@codemirror/state';

}
insert = normalizeIndent(insert + state.lineBreak, state);
return { range: EditorSelection.cursor(pos + insert.length), changes: { from: line.from, insert } };
insert = normalizeIndent(insert, state);
return { range: EditorSelection.cursor(pos + insert.length + 1),
changes: { from: line.from, insert: insert + state.lineBreak } };
}

@@ -273,5 +274,5 @@ }

from--;
insert = state.lineBreak + normalizeIndent(insert, state);
changes.push({ from, to: pos, insert });
return { range: EditorSelection.cursor(from + insert.length), changes };
insert = normalizeIndent(insert, state);
changes.push({ from, to: pos, insert: state.lineBreak + insert });
return { range: EditorSelection.cursor(from + insert.length + 1), changes };
});

@@ -278,0 +279,0 @@ if (dont)

{
"name": "@codemirror/lang-markdown",
"version": "6.2.1",
"version": "6.2.2",
"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