srid / emanote

Emanate a structured view of your plain-text notes
https://emanote.srid.ca
Other
814 stars 71 forks source link

Can't link to an xml file #547

Open MilanVasko opened 2 months ago

MilanVasko commented 2 months ago

Describe the bug Whenever I try to link to an .xml file using a regular markdown link ([Test](./test.xml)), Emanote displays an invalid link. Using the alternative syntax with double brackets works ([[test.xml]]).

It doesn't seem to happen with files with other extensions (.json or .txt, for example).

To Reproduce Steps to reproduce the behavior:

  1. Create a file named text.xml.
  2. Create a markdown file which links to it using the regular Markdown syntax - [Test](./test.xml).
  3. Observe that the rendered link in the browser looks as if the file didn't exist.

Expected behavior Link should be rendered correctly, similarly to other file types (.json) or the double-bracket syntax ([[test.xml]]).

Screenshots

The screenshot displays the following markdown content:

# Test

- [Test](./test.xml)
- [Test](test.xml)
- [[test.xml]]

image

Desktop (please complete the following information):

kukimik commented 1 month ago

Looks like this is related to the ATOM feed feature, see https://emanote.srid.ca/guide/feed. I guess Emanote interprets your link as pointing to the feed of the test.md note.

MilanVasko commented 1 month ago

Thank you @kukimik, that explanation makes sense.

I'm not using the ATOM feed though, and if I understand correctly, it needs to be enabled explicitly (which I haven't done), is there a way to work around this?