SUMMARY Links that follow the standard Markdown syntax (e.g. [google](https://google.com)) show the raw markdown rather than a clickable link. STEPS TO REPRODUCE 1. Edit a Markdown file to add a link, such as [google](https://google.com). 2. Open the Markdown file in Okular. OBSERVED RESULT The raw markdown syntax is shown for the link and no part of it is clickable. EXPECTED RESULT Only the text within the [] brackets is shown and clicking it goes to the URL between (). SOFTWARE/OS VERSIONS Linux: Arch Linux KDE Plasma Version: 5.27.8 KDE Frameworks Version: 5.110.0 Qt Version: 5.15.10 ADDITIONAL INFORMATION This is a recent regression. I'm not sure about the exact timing, but likely corresponds with the 23.08 release.
Created attachment 162082 [details] File to test the issue Works fine here. Can you test it with "discount-mkd2html test.md" in your system? Thanks in advance for your answer.
Created attachment 162092 [details] Screenshot of the test file The attached file does not appear correctly. I have attached a screenshot of how it looks for me in Okular. Browsing around the settings, I noticed the "Configure Backends" options, which has a section for Markdown. Apart from the default font, there's only an "Enable SmartyPants formatting" option, but toggling it doesn't appear to make any difference.
> Can you test it with "discount-mkd2html test.md" in your system? After installing the discount package and running mkd2html, it displays the link correctly. Double checking the code for Okular, it appears to have Discount as a dependency in the CMakeLists.txt. Does it use some sort of fallback if Discount isn't found? It's possible that the Arch package is simply misconfigured.
After further investigation, Arch does appear to have a proper dependency on the discount package, and the installed okularGenerator_md.so library is properly linking to libmarkdown.so. However, it looks like on August 27 the discount package was updated from version 2.2.7.d to 3.0.0.a. Okular does appear to have explicit checks for discount 3 to use the new API, but if the issue is limited to the newer version of discount that could explain the difference on your machine and mine.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/831
*** Bug 473940 has been marked as a duplicate of this bug. ***
Git commit a998e0ca17da3b12b251f00036d991dca05a06b7 by Albert Astals Cid. Committed on 05/10/2023 at 23:35. Pushed by aacid into branch 'master'. markdown: Fix rendering with discount3 These defines for no longer supported version of discount2 where breaking discount3 M +0 -14 generators/markdown/converter.cpp https://invent.kde.org/graphics/okular/-/commit/a998e0ca17da3b12b251f00036d991dca05a06b7
Git commit 043c3521229704558a6a06081a53bd46baac060a by Albert Astals Cid. Committed on 05/10/2023 at 23:52. Pushed by aacid into branch 'release/23.08'. markdown: Fix rendering with discount3 These defines for no longer supported version of discount2 where breaking discount3 M +0 -14 generators/markdown/converter.cpp https://invent.kde.org/graphics/okular/-/commit/043c3521229704558a6a06081a53bd46baac060a
*** Bug 475416 has been marked as a duplicate of this bug. ***