Skip to content

Added GitHub alert styles to bad/good code examples. #206

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

Closed

Conversation

kkevindev
Copy link
Contributor

@kkevindev kkevindev commented Mar 30, 2025

Added code blocks to alert boxes so the bad & good code examples are much easier to spot.

Before After
afbeelding afbeelding

Unfortunately you cannot change the "warning" and "tip" titles.

@TomasVotruba
Copy link
Member

Thanks for the proposal. I like simpler syntax we use now.
Also "tip" is not really right word, "correct" or "fixed" would be 👌

@kkevindev
Copy link
Contributor Author

@TomasVotruba Okay but if you look at this example, it's much more clear that the provided code in these examples give a warning (is bad code):

Before After
afbeelding afbeelding

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