-
-
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
Bold italics are not supported #177
Comments
I don't think we were supporting mixing styles, did we, @Waqar144? |
It is supported, try with a different font. I doubt its broken as the relevant code hasn't been touched in at least a year |
Thanks reply. qmarkdowntextedit/markdownhighlighter.cpp Line 2300 in 17ea661
Code above only bold and italic logical branches, lack mixing styles. So can you help me how to fix this? |
It is broken since 5d990c5. |
Yes, And
|
Font needs to be overwritten only if it was set / different. Just setting the font always is incorrect. You can test with QOwnNotes whether your change works for both cases i.e., when a font is set or not. (Read the linked QOwnNotes issue) Adding |
And please open an issue in QOwnNotes. |
I'll add that with pbek/QOwnNotes#2676. |
This is a qmarkdowntextedit bug, it can't be fixed in QOwnNotes |
Ah, I had to little sleep. |
Yes. You can remove this commit's change(5d990c5 ). Or make a new format with mixing styles. |
I think to fix it, one needs to check if the font is something different and then change? like the other checks below. Not sure though |
I already fixed it (see screenshot), it's not committed yet. |
Should be fixed now. |
That's great! |
I'm sure this commit caused the error. It also appears when I compile with the original project. |
Qt creator will crash, too. |
What original project?
Qt creator crashes!? |
The commit just uses https://doc.qt.io/qt-5/qtextcharformat.html#setFontFamily... |
Can you use the debugger to get a backtrace when the assert hits? |
I found problems with using qmarkdowntextedit as a 3rd party library in VS2022, then I tried to build QMarkDowntextedit-exe using the qmarkdowntextedit project and also got an error. I also tested compiling qmarkdowntextedit-exe in Qt creator with the same error. mingw and msvc2019 were used, respectively. |
Hmmm... I don't have any issues under Windows with Qt 5.11. |
What's the content of |
He is using Qt 6.4, it will easily crash there |
I need to wait until I'll hit a box where I've Qt6 running then... |
Then best not bump it in QON till its properly fixed. |
There is no issue with the Qt5 builds as far as I'm aware of. |
if there is no qt6 end user build, then it would be fine. But its trivial to fix either ways. |
Feel free to make a PR if you have faster access than me to a Qt6 box then. 😉 |
Open up master, i will push a fix ;) |
Should be fixed now. |
If I write Bold&italics, the result is incorrect.
The text was updated successfully, but these errors were encountered: