| Summary: | Links in markdown show raw markdown rather than a clickable link. | ||
|---|---|---|---|
| Product: | [Applications] okular | Reporter: | akb825 <akb825> |
| Component: | markdown backend | Assignee: | Okular developers <okular-devel> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | isaac.o.braham, jarno, yurchor |
| Priority: | NOR | ||
| Version First Reported In: | 23.08.1 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/okular/-/commit/043c3521229704558a6a06081a53bd46baac060a | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: |
File to test the issue
Screenshot of the test file |
||
|
Description
akb825
2023-10-03 23:36:02 UTC
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. *** |