xy2z / PineDocs

A fast and lightweight site for viewing files
GNU General Public License v3.0
141 stars 19 forks source link

Link to header in the same document not working #157

Open mrlorx opened 3 years ago

mrlorx commented 3 years ago

In one of my Markdown files there is a Heading with the title: # Example Header This link should lead to it: [example](#example-header) But instead it throws the following error: Error: could not load file: test-header File not found.

xy2z commented 3 years ago

Sadly this is not possible with the way PineDocs currently works., because a link to #example-header will try to load a file in the navigation called 'example-header'.

So I'm not sure how to handle both situations, any good ideas are welcome - to handle navigation links and header links, as they both start with #