markdown-editor icon indicating copy to clipboard operation
markdown-editor copied to clipboard

"Unable to parse your markup" when switch between modes

Open vladKrk opened this issue 1 year ago • 1 comments

How to reproduce

  1. Open editor in markdown format
  2. Add this to your markup [ ] page={number} ( checkbox with content that has brackets )
  3. Try to switch mode to "Visual Editor" or click button Preview

Expected result

Mode switched, markup is correct

Current Result

Image

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=

vladKrk avatar Jan 28 '25 09:01 vladKrk

Problem in transformer, same issue in diplodoc: diplodoc-platform/transform#559

d3m1d0v avatar Jan 28 '25 11:01 d3m1d0v