-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Lists number/bullet inherit style of following text #437
Comments
Can you please explain in more detail and step by step what you did, what happened and what you expected. And it seems you are using a dark highlighting schema in the non-dark mode, that looks a bit "strange" :). You should upgrade to the latest version of QON, where the background color will be adapted. |
@pbek I already have, I just used the screenshot from previous issue as it shows this bug as well. I wrote the issue late at night, I forgot to point out that it was an issue with preview pane(right side) rendering. Notice how the numbered list starts with orange number like the first bit of text(a link), then look down just above Here is an example you can try yourself for step by step:
Github renders like this:
And here is screenshot of example in QOwnNotes: Editor theme have nothing to do with it. |
Ah, now I know what you are talking about. Unfortunately that's a known limitation of the QTextEdit widget and I haven't found a way around this. The bullet styles are inherited from the styling of the first character in the list item. It's on my list to check if we ever use a fully fledged browser for the preview (which also has its disadvantages and is currently not possible). |
@pbek Would it be possible to workaround with an invisible character or space with regular text style applied prior to intended text on a list item? Has the bug been reported upstream to Qt?(assuming that's the relevant project) |
As far as I remember adding an "invisible" character didn't work back then... But you can play around with it in a script like https://github.com/pbek/QOwnNotes/blob/develop/doc/scripting/preview-styling.qml... I can't remember if there was an upstream Qt bug report... |
@pbek I had no luck with an invisible character work around either. I was able to find a related bug report for Qt but it was specific to the bold style. I've created a new issue here if you'd like to chime in or vote it up :) It's not been fixed in over 6 years, hopefully it'll get some attention. Anybody else that comes across this issue and would like to see it fixed can vote on the linked issue :) |
Thank you for testing and creating an issue. I voted for it. |
See how some list items start with links or
inline block
and this affects the style of the lists number/bullet? This should not be the case. List number/bullet should be consistent in style with the rest at it's level(I have seen some styles have alternating bullet styles per list level).The text was updated successfully, but these errors were encountered: