QOwnNotes
QOwnNotes copied to clipboard
[BUG] highlighting issue in malformed unordered lists
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
- create a file with .md extention in your Notes directory
- open this file with external editor such as ne, mc-edit, vim etc.
- enter following markdown code
- unordered list item
- unordered list subitem
-
- 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.
@Waqar144, is this something you could handle in qmarkdowntextedit?
If time permits, sure.
Awesome! 🎉👍🏻