Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1282: Unexpected cyclic link detected #1283

Merged

Conversation

badsketch
Copy link
Contributor

Fixes #1282

A note that embeds a note that does not exist is not properly handled. The exception then bubbles up so that the wikilink isn't rendered, but is still in the ref stack (what we use to determine if there's a cyclic link), causing erroneous cyclic link warnings.

Testing

Given
c

Then
a

Copy link
Collaborator

@riccardoferretti riccardoferretti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup I agree with the stopgap. The changes look good!

@riccardoferretti riccardoferretti merged commit a308dfd into foambubble:master Sep 7, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When including note with links to non-existent files, getting "cyclic link detected" warning
2 participants