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 embedded notes not generating proper reference links #1286

Merged

Conversation

badsketch
Copy link
Contributor

@badsketch badsketch commented Sep 15, 2023

I noticed when generating reference links for a note that includes embedded notes, the reference links have a syntax error.
before

This is caused by an off-by-one error when extracting the label after gathering the links for a note since embedded notes have an extra !.

After the fix:
after

Appreciate any feedback!

@badsketch badsketch marked this pull request as ready for review September 15, 2023 03:03
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.

I have left a very minor comment, this looks good otherwise.

I don't consider it a blocking comment, so in any case will merge tomorrow

Comment on lines 149 to 150
} else {
label = link.rawText;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this can be removed

Suggested change
} else {
label = link.rawText;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice! updated, lemme know if it's too "busy"

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.

Looks good!

@riccardoferretti riccardoferretti merged commit 3ef1b69 into foambubble:master Sep 25, 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.

None yet

2 participants