[okular] [Bug 484443] New: Okular Markdown backend code fence problem

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Mon Mar 25 11:07:05 GMT 2024


https://bugs.kde.org/show_bug.cgi?id=484443

            Bug ID: 484443
           Summary: Okular Markdown backend code fence problem
    Classification: Applications
           Product: okular
           Version: 22.12.3
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: markdown backend
          Assignee: okular-devel at kde.org
          Reporter: sebastienvalente at proton.me
  Target Milestone: ---

SUMMARY
When using code fence after an empty line, it's well rendered, but it's
rendered as inline code when there's no empty line before.

STEPS TO REPRODUCE
1. Create a "good.md" file
2. Put the following contents inside (note the empty line after "First line"):
First line

```
my code
fence
```
Last line
3. Create a "bad.md" file
4. Put the following contents inside (no empty line this time):
First line
```
my code
fence
```

OBSERVED RESULT
* good.md: the code fence is well displayed
* bad.md: the code fence isn't well displayed (rendered as an inline code)

EXPECTED RESULT
The same result as with good.md

SOFTWARE/OS VERSIONS
Linux: Debian GNU/Linux 12 (bookworm)
KDE Plasma Version: None, only the okular and okular-extra-backends packages
installed (with kde dependencies)

ADDITIONAL INFORMATION
Reference about no line needed before code fence here:
https://spec.commonmark.org/0.31.2/#fenced-code-block

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list