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

code snippet reference #1017

Merged
merged 4 commits into from
Dec 2, 2024
Merged

code snippet reference #1017

merged 4 commits into from
Dec 2, 2024

Conversation

nialexsan
Copy link
Collaborator

@nialexsan nialexsan commented Nov 27, 2024

code reference by snippet name
#1016

Copy link

vercel bot commented Nov 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 2, 2024 8:31pm

Copy link
Contributor

@briandoyle81 briandoyle81 left a comment

Choose a reason for hiding this comment

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

This is awesome! Can you please add an else at line 105 of code-reference.js to break the build process if snippetStart is not null but snippetEnd is null, and return an error naming the missing tag name?

I've built a similar system before and people will forget to close out their tags.

@briandoyle81 briandoyle81 merged commit 3b35c6a into main Dec 2, 2024
3 checks passed
@briandoyle81 briandoyle81 deleted the nialexsan/code-snippet-reference branch December 2, 2024 20:37
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.

2 participants