Marknote uses QTextDocument for its WYSIWYG text editor. This is surpringly quite powerful and thanks to some code borrowed from KMail rich text editor, it wasn’t hard to implement huge part of the markdown specification.
This is a companion discussion topic for the original entry at https://carlschwan.eu/2024/04/14/improvements-to-qtextdocument/