Bug 433619 - Images which are referenced using relative routes are not seen
Summary: Images which are referenced using relative routes are not seen
Status: REOPENED
Alias: None
Product: markdownpart
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Friedrich W. H. Kossebau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-25 21:21 UTC by Ganton
Modified: 2025-02-04 10:59 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
sample.md (29 bytes, text/markdown)
2021-02-25 21:21 UTC, Ganton
Details
A "1.gif" file that goes with the "sample.md" one (6.96 KB, image/gif)
2021-02-25 21:22 UTC, Ganton
Details
The problem still seen using Kate 22.12 (15.11 KB, image/png)
2023-04-13 09:57 UTC, Ganton
Details
The image is not seen using Kubuntu 23.04 (it utilizes Kate 22.12) in a new virtual machine. (45.11 KB, image/png)
2023-04-24 21:36 UTC, Ganton
Details
Under Kubuntu 23.10 after following Kåre's instructions (45.49 KB, image/png)
2023-12-31 10:35 UTC, Ganton
Details
If it may help: using Okular. (26.46 KB, image/png)
2023-12-31 10:38 UTC, Ganton
Details
If it may help: file associations in System Settings (58.58 KB, image/png)
2023-12-31 10:40 UTC, Ganton
Details
file associations in System Settings - "Embedded" tab (58.58 KB, image/png)
2023-12-31 18:17 UTC, Ganton
Details
file associations in System Settings - "Embedding" tab (99.25 KB, image/png)
2023-12-31 18:19 UTC, Ganton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ganton 2021-02-25 21:21:15 UTC
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
Comment 1 Ganton 2021-02-25 21:22:05 UTC
Created attachment 136168 [details]
A "1.gif" file that goes with the "sample.md" one
Comment 3 Ganton 2023-04-13 09:57:56 UTC
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 :-?
Comment 4 Ganton 2023-04-24 21:36:43 UTC
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...
Comment 5 Kåre Särs 2023-04-26 05:10:26 UTC
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
Comment 6 Ganton 2023-12-31 10:35:51 UTC
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.
Comment 7 Ganton 2023-12-31 10:38:34 UTC
Created attachment 164572 [details]
If it may help: using Okular.
Comment 8 Ganton 2023-12-31 10:40:36 UTC
Created attachment 164573 [details]
If it may help: file associations in System Settings
Comment 9 Kåre Särs 2023-12-31 12:09:14 UTC
What about the "Emportrado" (Embedding) tab?
Comment 10 Ganton 2023-12-31 18:17:19 UTC
Created attachment 164579 [details]
file associations in System Settings - "Embedded" tab

Thanks for your interest, Kåre.
Comment 11 Ganton 2023-12-31 18:19:39 UTC
Created attachment 164580 [details]
file associations in System Settings - "Embedding" tab

Thanks for your interest, Kåre.
Comment 12 Ganton 2023-12-31 18:23:49 UTC
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.
Comment 13 Ganton 2023-12-31 18:30:09 UTC
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
Comment 14 Kye 2024-06-14 19:39:06 UTC
Local images do not load despite the patch commit and remote images don't either but i assume thats another issue.