@codemirror/lang-markdown
Advanced tools
Comparing version 6.2.1 to 6.2.2
@@ -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 @@ |
@@ -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
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
57988
916