Skip to content

Conversation

jacob-thompson
Copy link
Contributor

fixes #6319

extends the Label widget to render markdown for user notes, and adds a toggle for a live markdown preview to the EditUserNotesDialog

image
Screen.Recording.2025-09-25.at.02.35.05.mov

jacob-thompson and others added 4 commits September 24, 2025 15:07
* Initial plan

* Add Markdown rendering support to Label widget

Co-authored-by: jacob-thompson <49221320+jacob-thompson@users.noreply.github.com>

* Fix markdown rendering and add preview toggle to notes editor

Co-authored-by: jacob-thompson <49221320+jacob-thompson@users.noreply.github.com>

* remove extraneous brace

* formatting

* formatting

* remove some comments

Co-authored-by: jacob-thompson <49221320+jacob-thompson@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jacob-thompson <49221320+jacob-thompson@users.noreply.github.com>
Co-authored-by: Jacob Thompson <jacobalthompson@gmail.com>
@fourtf
Copy link
Member

fourtf commented Sep 26, 2025

Hello Jacob, thank you for your submission. It looks technically sound and I like the usage of QTextDocument to handle markdown.

What I fear is that this feature will only be available to very technical users because it's necessary to know markdown to use it. I also fear that the markdown preview is confusing for users as it will likely show the same text as the left side if no markup is added.

To open this feature up for everyone I think it's necessary to hide the fact that we are using markdown under the hood. A graphical way of formatting (a toolbar with buttons for bold, italics, lists, etc.) would be intuitive and inviting. After all, this is a sub-dialog so why not keep the user interface simple there. The document can be loaded and saved as markdown automatically, so it would "just work" for the user.

What do you think about this? It's also possible to go ahead with your suggested GUI for now and reconsider it later.

@Mm2PL
Copy link
Collaborator

Mm2PL commented Sep 26, 2025 via email

@fourtf
Copy link
Member

fourtf commented Sep 26, 2025

Yeah maybe it's fine. The user doesn't have to use the markdown preview if he doesn't understand or want it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Markdown support for user notes
4 participants