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.1.0 to 6.1.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## 6.1.1 (2023-04-13)
### Bug fixes
Fix the declaration of `comentTokens` language data for Markdown.
Fix a bug in `deleteMarkupBackward` that would cause it to delete pieces of continued paragraphs below list item markers.
## 6.1.0 (2023-02-17)

@@ -2,0 +10,0 @@

8

dist/index.js

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

const data = /*@__PURE__*/defineLanguageFacet({ block: { open: "<!--", close: "-->" } });
const data = /*@__PURE__*/defineLanguageFacet({ commentTokens: { block: { open: "<!--", close: "-->" } } });
const headingProp = /*@__PURE__*/new NodeProp();

@@ -311,3 +311,7 @@ const commonmark = /*@__PURE__*/parser.configure({

changes: { from: line.from + spaceEnd, to: pos } };
if (pos - line.from == spaceEnd) {
if (pos - line.from == spaceEnd &&
// Only apply this if we're on the line that has the
// construct's syntax, or there's only indentation in the
// target range
(!inner.item || line.from <= inner.item.from || !/\S/.test(line.text.slice(0, inner.to)))) {
let start = line.from + inner.from;

@@ -314,0 +318,0 @@ // Replace a list item marker with blank space

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

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

@@ -5,10 +5,10 @@ <!-- NOTE: README.md is generated from src/README.md -->

[ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-markdown/blob/main/CHANGELOG.md) ]
[ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-markdown/blob/main/CHANGELOG.md) ]
This package implements Markdown language support for the
[CodeMirror](https://codemirror.net/6/) code editor.
[CodeMirror](https://codemirror.net/) code editor.
The [project page](https://codemirror.net/6/) has more information, a
number of [examples](https://codemirror.net/6/examples/) and the
[documentation](https://codemirror.net/6/docs/).
The [project page](https://codemirror.net/) has more information, a
number of [examples](https://codemirror.net/examples/) and the
[documentation](https://codemirror.net/docs/).

@@ -15,0 +15,0 @@ This code is released under an

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