QOwnNotes icon indicating copy to clipboard operation
QOwnNotes copied to clipboard

[BUG] highlighting issue in malformed unordered lists

Open vinyatu opened this issue 1 year ago • 3 comments

This is a follow-up to issue #3061.

Expected behaviour

- unordered list item
	- unordered list subitem
-

Actual behaviour

  • unordered list item
    • unordered list subitem

Steps to reproduce

  1. create a file with .md extention in your Notes directory
  2. open this file with external editor such as ne, mc-edit, vim etc.
  3. enter following markdown code
- unordered list item
	- unordered list subitem
-
  1. save the note and open it in QON

Output from the debug section in the settings dialog

This bug is confirmed both on Windows QON version 24.8.5 Built on Aug 13 2024 with Qt 5.15.2 and on Linux QON 24.8.5 AppImage Built on Aug 13 2024 with Qt 6.5.0. Further debug info may be provided on request.

Discussion

This bug appears only if Tab character (\t) is used as indent. It is well known that using spaces instead of tabs is associated with an 8.6% higher salary for coders, even if they have the same amount of experience. So those poor coders beg for mercy.

vinyatu avatar Aug 21 '24 12:08 vinyatu

@Waqar144, is this something you could handle in qmarkdowntextedit?

pbek avatar Aug 21 '24 13:08 pbek

If time permits, sure.

Waqar144 avatar Aug 21 '24 14:08 Waqar144

Awesome! 🎉👍🏻

pbek avatar Aug 21 '24 14:08 pbek