Bug 491413

Summary: Escape character doesn't work for backticks
Product: [Applications] okular Reporter: domojestic
Component: markdown backendAssignee: Okular developers <okular-devel>
Status: RESOLVED NOT A BUG    
Severity: minor CC: aacid
Priority: NOR    
Version First Reported In: 24.05.2   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A formatted version of a popular vim-related stackoverfllow answer

Description domojestic 2024-08-08 00:16:17 UTC
SUMMARY
If I want to display the backtick character (`) as inline code, I'm under the assumption that I would need to write something like this: `\``. However, this simply does not work.

STEPS TO REPRODUCE
1. In a markdown file, write the string `\``
2. Open the file in Okular.

OBSERVED RESULT
The backtick next to the backslash behaves like a normal Markdown backtick, expecting a closing backtick later and breaking the way the file is intended to be rendered.

EXPECTED RESULT
The backtick is seen rendered in monospace.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Comment 1 Albert Astals Cid 2024-08-08 18:09:30 UTC
Please attach such a file
Comment 2 domojestic 2024-08-09 01:39:32 UTC
Created attachment 172424 [details]
A formatted version of a popular vim-related stackoverfllow answer

Here's the exact file I was editing: the content actually references backticks explicitly, so hopefully it's easy to find the spots I'm referring to!
Comment 3 Albert Astals Cid 2024-08-10 10:31:40 UTC
Are you speaking about

You can move to the precise location of any mark using the `\`` (backquote) command. Thus  `\`z` will move directly to the exact location of the 'z' mark.

?

That's not how you escape markdown it seems, at least if you go to https://umemotoctrl.github.io/mdpjs/ and paste that text, none of the 7 different renderers you can select there do what you say it should do.