[okular] [Bug 430538] Markdown files opened as plain text

Adrian W. bugzilla_noreply at kde.org
Thu Mar 17 16:17:16 GMT 2022


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

Adrian W. <generic at nonimportant.email> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |generic at nonimportant.email
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---
            Version|21.08.3                     |21.12.3
           Platform|Other                       |Manjaro

--- Comment #9 from Adrian W. <generic at nonimportant.email> ---
I have a lot of markdown documents opening with the Txt backend. Figured it out
eventually, it seems to me like it's a bug.

Attached 2 files, one opens with the Txt backend and the other with the
Markdown backend.
- Both are 'mime-type: text/plain'
- Both show in Dolphin as 'Type: Markdown document' (*.md)

But Dolphin properties show different recognized content:
'markdown.md' shows correctly 'Content: plain text document'
'notmarkdown.md' shows incorrectly 'Content: MATLAB file'

The difference that triggers the content to be misdiagnosed is how the first
line starts. Remove the first line from 'markdown.md' and the content changes
to MATLAB document, consequently opening the file in Okular with the Txt
backend.

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


More information about the Okular-devel mailing list