@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 +2 -1
- package/package.json +1 -1
package/dist/MDXEditor.js
CHANGED
|
@@ -97,7 +97,8 @@ const Methods = ({ mdxRef }) => {
|
|
|
97
97
|
() => {
|
|
98
98
|
return {
|
|
99
99
|
getMarkdown: () => {
|
|
100
|
-
|
|
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$);
|