File:/// URIs ending containing a fragment don't open

When given a Markdown link containing a file:/// URI as follows:


Obsidian tries to literally open a file named example.html#bar. However, this goes against the URI spec, where a fragment should point to a portion of a given document. [1], [2]

The same path works in e.g. xdg-open:
xdg-open 'file:///home/sanqui/example.html#bar'

as well as Firefox and Chrome.

[1] URI fragment - Wikipedia
[2] RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax