-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bringing features from QTextMarkdownWriter #181
Comments
QTextEdit is a Rich Text Editor that uses HTML as "base". QMarkdownTextEdit doesn't do HTML, it does Plain Text (with QPlainTextEdit as basis).
...so the simple answer is: no 😁 |
But what was it you are trying to achieve? |
Well, I mainly want to add rendered checkboxes and bullet lists. But I also wish to support adding more active, custom widgets into QTextEdit (although that is less of a priority). See: nuttyartist/notes#560 |
Hehe, please keep me posted about your progress. 😁 |
Hey there. While I didn't end up adding custom widgets to QTextEdit, I built my own block editor with the model in C++ and the view in QML. The underlying data structure is just plaintext. Here's the progress so far (near the end I show QTextMarkdown with the same underlying plaintext): Screen.Recording.2023-11-07.at.11.32.13.AM.mov |
Wow, nice! Is there also a view where it shows the plain-text? Are you planing on implementing some syntax highlighting for such a plain-text view if there is one? |
Yes, I just implemented one at this very moment. I'm using QMarkdownTextEdit with the QML exposed by @tim-gromeyer. |
This looks really neat!! |
Awesome! |
Hey,
I've been using the QTextEdit example that comes with Qt and saw that it supports lists withe nice rendering and handling of checkboxes and other items.
Do you think we can bring it into QMarkdownTextEdit?
Here's the example:
https://doc.qt.io/qt-6/qtwidgets-richtext-textedit-example.html
The text was updated successfully, but these errors were encountered: