@mdxeditor/editor 3.35.0 → 3.35.1

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
@@ -97,7 +97,8 @@ const Methods = ({ mdxRef }) => {
97
97
  () => {
98
98
  return {
99
99
  getMarkdown: () => {
100
- if (realm.getValue(viewMode$) === "source") {
100
+ const viewMode = realm.getValue(viewMode$);
101
+ if (viewMode === "source" || viewMode === "diff") {
101
102
  return realm.getValue(markdownSourceEditorValue$);
102
103
  }
103
104
  return realm.getValue(markdown$);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "*.css"
12
12
  ],
13
13
  "type": "module",
14
- "version": "3.35.0",
14
+ "version": "3.35.1",
15
15
  "description": "React component for rich text markdown editing",
16
16
  "scripts": {
17
17
  "build": "vite build",