Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pradel opened this issue Dec 17, 2021 · 0 comments

Comments

@pradel
Copy link

pradel commented Dec 17, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant