Markwon icon indicating copy to clipboard operation
Markwon copied to clipboard

TaskList item highlight doesn't toggle even after the checkbox gets toggled back to not done

Open amar-w opened this issue 2 years ago • 2 comments

  • Markwon version: 4.6.2
  1. Render a standard task-list item
  2. Mark the checkbox done - the checkmark appears, checkbox colours change as expected - the rest of the item (ie text) gets highlighted
  3. Toggle the checkbox back to not done - the checkmark disappears and checkbox to its original state - but the highlighted text remains highlighted
  4. The entire textview should also revert to its original state when the checkbox was unchecked (and possibly it should be controllable to never have changed its background colour in the first place)

Using the basic/trial implementation suggested here https://noties.io/Markwon/docs/v3/ext-tasklist/#task-list-mutation - looked like a bug hence reporting.

Screenshot 2023-05-19 at 5 19 10 PM

^ checkbox was unchecked but the text item still remained highlighted

amar-w avatar May 19 '23 11:05 amar-w

Hello @amar-w ,

thank you for brining attention to this. I can confirm that this happens. A quick search reveals that this can be fixed by setting highlight color of a TextView

noties avatar Jun 04 '23 09:06 noties

Hi, @noties. Thanks. Yes, I was able to test that back then when I was exploring the extension but I didn't dig into ext code and rather decided to not use the extension. Used stock Checkbox with Markwon rendering the text. I raised the bug for the ext impl in case it was to be fixed.

amar-w avatar Jun 04 '23 18:06 amar-w