Skip to content

Conversation

@nialexsan
Copy link
Collaborator

@nialexsan nialexsan commented Nov 27, 2024

code reference by snippet name
#1016

@vercel
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
2 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.

3 participants