Closed bayang closed 10 months ago
Sorry, this was broken in a recent refactor I did when adding better support for dataview js. I've found the issue and released an update which should fix this, so that headerlinks should work just as they did before. You need to update the template for the fix. Let me know the issue was resolved or not after updating 😄
I deployed with the fix and my links are ok now, thank you for all your work ! :)
Latest release makes my links pointing to headers render as 404 pages with following classes : "internal-link is-unresolved"
I grepped the source code and the only part that sets this classes is .eleventyconfig.js in getAnchorAttributes.
My links look like this :
Which looks fine in obsidian.
The problem seems to start at the following line in the
if (filePath.includes("#")) {
code blockMy editor tells me : Unexpected use of comma operator
Ans I think the code breaks at this line.
Maybe destructuring assignment cannot be used like this to overwrite existing variables ?
If I replace it temporarily by the beginner array version :
The code goes further and then breaks again.
I added the exception to the final catch and logged it :
The code seems to use the full path with the anchor and the header. The actual file referenced in the stacktrace should be
solo-tools.md
and the header in the file isoutils/émulateur