Created attachment 136167 [details] sample.md SUMMARY Images which are referenced using relative routes are not seen (absolute routes work). Using Okular that doesn't happen. STEPS TO REPRODUCE 1. Download the very simple "sample.md" and "1.gif" files. 2. Open the "sample.md" attached file using Kate. 3. Use the preview. OBSERVED RESULT No image is seen. EXPECTED RESULT The image should be seen. It works opening the "sample.md" using Okular, for example. SOFTWARE/OS VERSIONS Operating System: Kubuntu 20.04 KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.68.0 Qt Version: 5.12.8 Kernel Version: 5.4.0-65-generic
Created attachment 136168 [details] A "1.gif" file that goes with the "sample.md" one
https://invent.kde.org/utilities/markdownpart/-/commit/e84600d4671809e0619776b2fa8a43e0e59c2b2b is fixed.
Created attachment 158068 [details] The problem still seen using Kate 22.12 Hello. The problem is still seen using Kate 22.12. Can we confirm that the bug is solved :-?
Created attachment 158399 [details] The image is not seen using Kubuntu 23.04 (it utilizes Kate 22.12) in a new virtual machine. I've tried it with the new Kubuntu 23.04 (it utilizes Kate 22.12) in a new virtual machine. The image is not seen. I attach a screenshot...
Hi, The Okular part does not seem to like the relative path or something. Please install markdownpart (sudo apt install markdownpart) and either remove the Okular markdown backend or move it down the list in file associations in System Settings. The markdown part works nicer with Kate as it has much less keyboard shortcuts that might conflict. If you want to continue using the Okular kpart, you need to file this bug to Okular. I hope this helps
Created attachment 164571 [details] Under Kubuntu 23.10 after following Kåre's instructions Thanks, Kåre. I've tried that under Kubuntu 23.10, and the result is different, although not correct.
Created attachment 164572 [details] If it may help: using Okular.
Created attachment 164573 [details] If it may help: file associations in System Settings
What about the "Emportrado" (Embedding) tab?
Created attachment 164579 [details] file associations in System Settings - "Embedded" tab Thanks for your interest, Kåre.
Created attachment 164580 [details] file associations in System Settings - "Embedding" tab Thanks for your interest, Kåre.
Note: We can forget about the comment 10 (https://bugs.kde.org/show_bug.cgi?id=433619#c10), it has been superseded by the comment 11.
Perhaps it's important the last line of: $ LANG=C systemsettings kf.service.services: The desktop entry file "/usr/share/applications/bookmarks.desktop" has Type= "Application" but no Exec line kf.service.sycoca: Invalid Service : "/usr/share/applications/bookmarks.desktop" kf.service.services: The desktop entry file "/usr/share/applications/org.freedesktop.Xwayland.desktop" has Type= "Application" but no Exec line kf.service.sycoca: Invalid Service : "/usr/share/applications/org.freedesktop.Xwayland.desktop" file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "width" file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/ScrollablePage.qml:200:9: QML MouseArea: Binding loop detected for property "width" QQmlEngine::setContextForObject(): Object already has a QQmlContext "text/markdown" hasDefinitionFile: false
Local images do not load despite the patch commit and remote images don't either but i assume thats another issue.