markdown-editor
markdown-editor copied to clipboard
"Unable to parse your markup" when switch between modes
How to reproduce
- Open editor in markdown format
- Add this to your markup
[ ] page={number}( checkbox with content that has brackets ) - Try to switch mode to "Visual Editor" or click button Preview
Expected result
Mode switched, markup is correct
Current Result
Additional info
I reproduced it in mardown-editor playground, the error comes from markdown-it-attrs.
If paste content in markdown mode without checkbox, like this page={number} this will transform in visual editor like this page=
Problem in transformer, same issue in diplodoc: diplodoc-platform/transform#559