[markdownpart] [Bug 524015] New: Ctrl+wheel zoom leaves fenced Markdown code blocks at the old font size until preview is refreshed
| Newsgroups | gmane.comp.kde.devel.bugs |
|---|---|
| Message-ID | <[email protected]/> |
https://bugs.kde.org/show_bug.cgi?id=524015
Bug ID: 524015
Summary: Ctrl+wheel zoom leaves fenced Markdown code blocks at
the old font size until preview is refreshed
Classification: Frameworks and Libraries
Product: markdownpart
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 194972
--> https://bugs.kde.org/attachment.cgi?id=194972&action=edit
Screenshot of the markdown zoom bug
SUMMARY
When zooming a rendered Markdown document with Ctrl+mouse-wheel, headings and
ordinary paragraph text resize immediately, but fenced code blocks remain at
their previous font size. This produces extremely inconsistent text sizes.
Manually refreshing the preview makes the code blocks adopt the new zoom level,
but they become inconsistent again after the next zoom operation.
STEPS TO REPRODUCE
1. Open Kate and enable the Document Preview plugin.
2. Open a Markdown file containing a heading, paragraph, and fenced code block,
for example:
# Heading
Ordinary paragraph text.
```text
Text inside a fenced code block.
More code-block text.
```
3. Open the rendered preview pane.
4. Place the pointer over the preview and hold Ctrl while scrolling the mouse
wheel to zoom.
5. Compare the heading/paragraph sizes with the fenced code-block size.
6. Click the preview's manual Refresh/Update button.
OBSERVED RESULT
Headings and ordinary text resize immediately, while fenced code blocks remain
at their previous font size. After manually refreshing the preview, the fenced
code blocks catch up to the selected size.
EXPECTED RESULT
All rendered text, including fenced code blocks, should resize together and
immediately when the preview is zoomed. A manual document refresh should not be
required.
REPRODUCIBILITY
Always
SOFTWARE/OS VERSIONS
Operating System: KDE neon User Edition
Kate: 26.04.3
MarkdownPart: 26.04.3
KDE Plasma: 6.7.3
Qt: 6.11.1
Kernel: 7.0.0-28-generic
Graphics Platform: Wayland
ADDITIONAL INFORMATION
Related upstream Qt reports:
QTBUG-77935:
https://qt-project.atlassian.net/browse/QTBUG-77935
"QTextBrowser's zoomIn/Out works only for some HTML tags"
QTBUG-55502:
https://qt-project.atlassian.net/browse/QTBUG-55502
Request for display-level QTextEdit zoom that does not modify document fonts.
--
You are receiving this mail because:
You are watching all bug changes.