(Tested on Fedora 35)
If a markdown document contains (or at least starts with XML comments in the form of `<!-- ... -->`, Then it does not render the rest of the document properly.
Please attach such a file for testing.
I don't know whether XML is allowed in MD documents but KDE's syntax highlighter highlights XML nodes in MD documents when the file it opened in Kate for example.
I don't see any <!-- in https://raw.githubusercontent.com/osgi/osgi/4ba3d49d9cc4b71dc1ed65ad8300d93e294601b6/README.md nor https://raw.githubusercontent.com/raphw/byte-buddy/94c0a54ca030ad1ae390015373376118e9fd83d5/README.md
Can you point at the lines?
Created attachment 151144 [details]
Example which doesn't render properly
No, but neither those are rendered by Okular and contain XML nodes.
(In reply to Marián Konček from comment #2)
> Sure, here:
> I don't know whether XML is allowed in MD documents but KDE's syntax
> highlighter highlights XML nodes in MD documents when the file it opened in
> Kate for example.
I used a wrong example, i downloaded it with wget, but the whole webpage, not just the document...
In any case I do remember other cases where this issue happened as I am a package maintainer and there was some case of such a document present in the sources.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/645
Git commit 01871fdfff9363af3a90959650ef20ab9276c464 by Albert Astals Cid.
Committed on 31/08/2022 at 16:55.
Pushed by aacid into branch 'release/22.08'.
Even more tweaks to opening "text" files
Related: bug 430538
M +10 -1 part/part.cpp