decap-cms-widget-markdown 3.5.0 → 3.6.0

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.
@@ -141,7 +141,8 @@ function Editor(props) {
141
141
 
142
142
  function handleMarkClick(format) {
143
143
  ReactEditor.focus(editor);
144
- toggleMark(editor, format);
144
+ const markFormat = format === 'strikethrough' ? 'delete' : format;
145
+ toggleMark(editor, markFormat);
145
146
  }
146
147
 
147
148
  function handleBlockClick(format) {
@@ -222,7 +223,7 @@ function Editor(props) {
222
223
  position: relative;
223
224
  `}
224
225
  >
225
- <Slate editor={editor} value={editorValue} onChange={handleChange}>
226
+ <Slate editor={editor} value={editorValue} initialValue={editorValue} onChange={handleChange}>
226
227
  <EditorControlBar>
227
228
  {
228
229
  <Toolbar
package/src/schema.js CHANGED
@@ -8,6 +8,7 @@ export default {
8
8
  enum: [
9
9
  'bold',
10
10
  'italic',
11
+ 'strikethrough',
11
12
  'code',
12
13
  'link',
13
14
  'heading-one',