@mdxeditor/editor 2.3.7 → 2.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/MDXEditor.js CHANGED
@@ -74,7 +74,7 @@ const EditorRootElement = ({ children, className }) => {
74
74
  popupContainer.classList.add(styles.editorRoot);
75
75
  popupContainer.classList.add(styles.popupContainer);
76
76
  if (className) {
77
- className.split(" ").forEach((c) => {
77
+ className.trim().split(" ").forEach((c) => {
78
78
  popupContainer.classList.add(c);
79
79
  });
80
80
  }
@@ -1,5 +1,5 @@
1
1
  import { factorySpace } from "micromark-factory-space";
2
- import { markdownLineEnding } from "./node_modules/micromark-util-character/index.js";
2
+ import { markdownLineEnding } from "micromark-util-character";
3
3
  import { codes, types } from "micromark-util-symbol";
4
4
  function commentFromMarkdown(_options) {
5
5
  return {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "*.css"
12
12
  ],
13
13
  "type": "module",
14
- "version": "2.3.7",
14
+ "version": "2.3.9",
15
15
  "description": "React component for rich text markdown editing",
16
16
  "scripts": {
17
17
  "build": "vite build",
@@ -81,6 +81,7 @@
81
81
  "micromark-extension-mdx-md": "^2.0.0",
82
82
  "micromark-extension-mdxjs": "^3.0.0",
83
83
  "micromark-factory-space": "^2.0.0",
84
+ "micromark-util-character": "^2.0.1",
84
85
  "micromark-util-symbol": "^2.0.0",
85
86
  "react-hook-form": "^7.44.2",
86
87
  "unidiff": "^1.0.2"
@@ -1,6 +0,0 @@
1
- function markdownLineEnding(code) {
2
- return code !== null && code < -2;
3
- }
4
- export {
5
- markdownLineEnding
6
- };