Bug 444229 - No rendering of fence code block
Summary: No rendering of fence code block
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: markdown backend (show other bugs)
Version: 1.9.3
Platform: Kubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-22 08:43 UTC by Christian Deligant
Modified: 2021-10-23 09:40 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example of wrong rendering and expected rendering (162.10 KB, image/png)
2021-10-22 08:43 UTC, Christian Deligant
Details
File to trigger the bug(?) (533 bytes, text/markdown)
2021-10-23 05:35 UTC, Yuri Chornoivan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Deligant 2021-10-22 08:43:36 UTC
Created attachment 142759 [details]
Example of wrong rendering and expected rendering

SUMMARY
The markdown for fence-block-code is not rendered correctly

STEPS TO REPRODUCE
1. write the following code in a demo.md document
* per OGNI sito in cui si vuole https spostare la parte di definizione nel vhost:443 e mettere nel vhost:80
```
<VirtualHost *:80>
        ServerName **SERVERNAME**
        <IfModule mod_rewrite.c>
                RewriteEngine on
                RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/.*
                RewriteRule ^/?(.*) https://**SERVERNAME**/$1 [L,R,NE]
        </IfModule>
        <IfModule !mod_rewrite.c>
                Redirect permanent / https://**SERVERNAME**/
        </IfModule>

</VirtualHost>
```
2. Open the document in okular (repo package from kubuntu 20.04)

OBSERVED RESULT
The block is rendered as an inline string (top of the attached image)

EXPECTED RESULT
The block should be rendered as a code block (bottom of the attached image)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 20.04 vanilla
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Okular Backend Markdown version 0.1.0 by Julian Wolff
Kernel: 5.11.0-38-generic 64bit
Processor: 12xcore i7-10750H CPU @ 2.6 GHz
RAM: 31.1 GiB
Comment 1 Albert Astals Cid 2021-10-22 21:04:00 UTC
Please attach the .md file you're using to test this.
Comment 2 Yuri Chornoivan 2021-10-23 05:35:12 UTC
Created attachment 142778 [details]
File to trigger the bug(?)

The demo file. It is enough to add the new line before ``` to make it rendered correctly.
Comment 3 Yuri Chornoivan 2021-10-23 05:40:19 UTC
I think it's a rather discount problem (?), not the okular one.
Comment 4 Christian Deligant 2021-10-23 09:40:49 UTC
(In reply to Yuri Chornoivan from comment #2)
> Created attachment 142778 [details]
> File to trigger the bug(?)
> 
> The demo file. It is enough to add the new line before ``` to make it
> rendered correctly.

You are perfectly right. Sorry for my misunderstanding of the correct syntax to write markdowns. I used Retext to write the md file. I read somewhere that MD is not "strict" about compliance so what is working in one editor is not garanteed to work in a different viewer.
This "bug" can be closed for my side.
Thank you very much for your time and patience.