[okular] [Bug 499497] New: Okular renders Markdown files wrongly. Code blocks are not always recognized.
Paul Sommer
bugzilla_noreply at kde.org
Tue Feb 4 10:54:55 GMT 2025
https://bugs.kde.org/show_bug.cgi?id=499497
Bug ID: 499497
Summary: Okular renders Markdown files wrongly. Code blocks are
not always recognized.
Classification: Applications
Product: okular
Version: 23.08.5
Platform: Kubuntu
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: markdown backend
Assignee: okular-devel at kde.org
Reporter: nl at paul-sommer.de
Target Milestone: ---
SUMMARY
Okular renders Markdown files wrongly. Code blocks are not always recognized.
STEPS TO REPRODUCE
1. create a .md file with a code block like so:
The is a line with some arbitrary text. Next line is code.
```
my_project/
│-- src/ # Quellcode des Programms
│ │-- main.py # Haupteinstiegspunkt
```
2. open it in Okular
OBSERVED RESULT
The code part is not reconized as code and is printed like so:
The is a line with some arbritary test. Next line is code
my_project/ │-- src/ # Quellcode des Programms │ │-- main.py
# Haupteinstiegspunkt
EXPECTED RESULT
The code should be printed as code
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 24.04
KDE Plasma Version: current
KDE Frameworks Version: current
Qt Version: current
ADDITIONAL INFORMATION
Things work as intended when there is a blank line before the opening ```
I don't know what the official standard behavior is, but all markup renderers I
know output code as code even without a previous blank line.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list