Created attachment 152627 [details] Test document for code in markdown SUMMARY Code in markdown not properly displayed STEPS TO REPRODUCE 1. Create a markdown text, e.g. like in attached test.md 2. Open with Okular OBSERVED RESULT Code not rendered as code, but as normal text EXPECTED RESULT Code rendered with monospace font and possibly other background, maybe even syntax highlighting SOFTWARE/OS VERSIONS KDE Plasma Version: None KDE Frameworks Version: Version 5.98.0 Qt Version: Version 5.15.6 (built against 5.15.5)
(In reply to mahlzahn from comment #0) > Created attachment 152627 [details] > Test document for code in markdown > > SUMMARY > Code in markdown not properly displayed > > > STEPS TO REPRODUCE > 1. Create a markdown text, e.g. like in attached test.md > 2. Open with Okular > > OBSERVED RESULT > Code not rendered as code, but as normal text > > EXPECTED RESULT > Code rendered with monospace font and possibly other background, maybe even > syntax highlighting > > SOFTWARE/OS VERSIONS > KDE Plasma Version: None > KDE Frameworks Version: Version 5.98.0 > Qt Version: Version 5.15.6 (built against 5.15.5) That is how it is parsed by Discount (our Markdown backend). It cannot parse this extended syntax. I think that it is an upstream issue. https://github.com/Orc/discount
The code is defintely monospace here https://i.imgur.com/PFhuIRw.png
That’s how it looks for me: https://imgur.com/5ez2Qyc.png And it’s not only about extended Markdown, but also the normal one is not showing for me in Monospace. Maybe it is just a font issue. The code itself seems to be detected and shown as a block. Is there some additional dependency needed for the correct monospace font?