kontent-ai / rich-text-resolver-js

Tool for transforming rich text content from HTML into a JSON structure and Portable Text format.
https://www.npmjs.com/package/@kontent-ai/rich-text-resolver
MIT License
9 stars 3 forks source link

Issue with the Rich text resolver output interrupted by line breaks #56

Open keerthiga-64 opened 1 month ago

keerthiga-64 commented 1 month ago

Brief bug description

What went wrong?

It was working long back but now it does not seems to work, output isn’t returning the strong value for the second element

Repro steps

  1. Go to 'Rich text component'
  2. Give any text and then give ctrl+enter or shift +enter for line break and provide the second element ,and then select these elements together and apply bold or italics.
  3. Then the bold/italics format will only be added to the first element in UI and the changes will not get reflected for the second element.
  4. See error in below screenshot

Expected behavior

The mark type (Italics,bold,etc…) should get applied to both the first element and also to the subsequent elements in UI when using Shift+Enter for line breaks.

Test environment

Screenshots

image image
pokornyd commented 1 week ago

Hello and thank you for your submission. I'll try to reproduce the problem and will update you on the resolution or if I need any further context, thanks for your patience!