[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
[x] I have read the documentation and cannot find an answer.
Describe the bug
The component StrikeThroughSupSubToggles does not support an options prop. This is seem arbitrary, as its neighbour component in the same file, BoldItalicUnderlineToggles - does support an options prop.
The options prop allows the user to decide which buttons of the toggle group will appear. In the case of StrikeThroughSupSubToggles - this option is quite missing, as Strikethrough is very popular, unlike sub/sup formatting.
Reproduction
See StrikeThroughSupSubToggles
Expected behavior
Use the same pattern as in BoldItalicUnderlineToggles and check if options.includes the option in the group before rendering.
Screenshots
Desktop (please complete the following information):
OS: [e.g. MacOS, Windows] - Windows can act funny sometimes.
Browser [e.g. Chrome, Safari]
Additional context
Add any other context about the problem here.
Please excuse me for the bug label, this is definitely a feature-request. If you think this can fit with your project, I would be happy to contribute this PR myself.
Describe the bug The component
StrikeThroughSupSubToggles
does not support anoptions
prop. This is seem arbitrary, as its neighbour component in the same file,BoldItalicUnderlineToggles
- does support anoptions
prop.The
options
prop allows the user to decide which buttons of the toggle group will appear. In the case ofStrikeThroughSupSubToggles
- this option is quite missing, as Strikethrough is very popular, unlike sub/sup formatting.Reproduction See
StrikeThroughSupSubToggles
Expected behavior Use the same pattern as in
BoldItalicUnderlineToggles
and check ifoptions.includes
the option in the group before rendering.Screenshots![image](https://github.com/mdx-editor/editor/assets/75531/c7ab18f8-5a49-4692-ace5-4771e383a806)
Desktop (please complete the following information):
Additional context Add any other context about the problem here.