remark-slate icon indicating copy to clipboard operation
remark-slate copied to clipboard

In serialise function, the `strikeThrough` option is not possible to change via `nodeTypes`

Open pradel opened this issue 2 years ago • 0 comments

Currently, there is no way to customise the strikeThrough name via the serialise function. The following code is not working:

serialize(v, {
  nodeTypes: {
    ...defaultNodeTypes,
    // not working
    delete_mark: 'underlined',
  },
});

This line needs to be changed https://github.com/hanford/remark-slate/blob/master/src/serialize.ts#L155.

pradel avatar Dec 17 '21 10:12 pradel