🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@codemirror/lang-markdown

Package Overview
Dependencies
Maintainers
2
Versions
39
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.3.2
to
6.3.3
+6
-0
CHANGELOG.md

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

## 6.3.3 (2025-06-13)
### Bug fixes
Make `insertNewlineContinueMarkup` take effect even when at the end of a nested range of Markdown content.
## 6.3.2 (2025-01-09)

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

+2
-2

@@ -215,3 +215,3 @@ 'use strict';

let dont = null, changes = state$1.changeByRange(range => {
if (!range.empty || !markdownLanguage.isActiveAt(state$1, range.from, 0))
if (!range.empty || !markdownLanguage.isActiveAt(state$1, range.from, -1) && !markdownLanguage.isActiveAt(state$1, range.from, 1))
return dont = { range };

@@ -308,3 +308,3 @@ let pos = range.from, line = doc.lineAt(pos);

insert += context[i].blank(i < e
? state.countColumn(line.text, 4, Math.min(line.text.length, context[i + 1].from)) - insert.length
? state.countColumn(line.text, 4, context[i + 1].from) - insert.length
: null, i < e);

@@ -311,0 +311,0 @@ }

@@ -213,3 +213,3 @@ import { EditorSelection, countColumn, Prec, EditorState } from '@codemirror/state';

let dont = null, changes = state.changeByRange(range => {
if (!range.empty || !markdownLanguage.isActiveAt(state, range.from, 0))
if (!range.empty || !markdownLanguage.isActiveAt(state, range.from, -1) && !markdownLanguage.isActiveAt(state, range.from, 1))
return dont = { range };

@@ -306,3 +306,3 @@ let pos = range.from, line = doc.lineAt(pos);

insert += context[i].blank(i < e
? countColumn(line.text, 4, Math.min(line.text.length, context[i + 1].from)) - insert.length
? countColumn(line.text, 4, context[i + 1].from) - insert.length
: null, i < e);

@@ -309,0 +309,0 @@ }

{
"name": "@codemirror/lang-markdown",
"version": "6.3.2",
"version": "6.3.3",
"description": "Markdown language support for the CodeMirror code editor",

@@ -5,0 +5,0 @@ "scripts": {