Wondering if this is a bug or possibly a missing dependency. I have okular-spectre installed in addition to okular. I also checked the file association and that seems okay. Not sure what else might be the problem.
Thanks, Grant
Wondering if this is a bug or possibly a missing dependency. I have okular-spectre installed in addition to okular. I also checked the file association and that seems okay. Not sure what else might be the problem.
Thanks, Grant
What version of okular? There was a bug where markdown wasn’t rendered:
Yeah, I saw that too. I’m on version 21.04
In that case I’d re-open that bug report, or create a new report quoting that one.
So, this is really strange. I don’t think the problem is with Okular. I was able to open a different markdown file w/o an issue. I did some digging, when I clone our git repo, Dolphin correctly identifies the file type as markdown but it says the contents are a MATLAB file instead of a text document and that apparently is throwing off Okular. I don’t know where that is coming from, if I import the file into QOwnNotes it fixes the issue and I can overwrite the file.
I’m away from my TW machines at the moment, but testing on a Leap 15.2 system okular opens the sample markdown file ( from https://bugs.kde.org/attachment.cgi?id=134178 ) correctly.
Interestingly though using “file --mime-type file-name” returns text/plain
paul@Orion-17:~/Global/Downloads> file --mime-type Fedora-29-xrdp.md
Fedora-29-xrdp.md: text/plain
paul@Orion-17:~/Global/Downloads>
so I guess the association is only on file extension.
Those currently (bearing in mind this is leap 15.2) are:
https://paste.opensuse.org/view/raw/5134b583
maybe check those again?
I’ll try on a current TW system, but that won’t be for a day or two I’m afraid.
I referred to the documention and found: /usr/share/doc/packages/markdownpart/README.md
**erlangen:~ #** zypper se -i markdown
Loading repository data...
Reading installed packages...
S | Name | Summary | Type
---+-----------------------+-------------------------------------------+--------
i+ | kmarkdownwebview | KPart for rendering Markdown content | package
i | kmarkdownwebview-lang | Translations for package kmarkdownwebview | package
i | libmarkdown2 | Markdown text to HTML converter library | package
**i+ | markdownpart | KPart for rendering Markdown content | package **
i | markdownpart-lang | Translations for package markdownpart | package
i+ | python38-Markdown | Python implementation of Markdown | package
**erlangen:~ #**
Okular now readily displays markdown.