Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Objective
Resolve formatting issue in 3D Shapes Example page on the Bevy Website, where an unwrapped
Assets<A>is breaking the HTML rendering on the page. This fix follows the standard set forth by otherAssets<A>instances on the page.Fixes bevy-website issue: bevyengine/bevy-website#2302
Solution
Wrap
Assets<A>as a code snippet to resolve HTML rendering issues. Wrapping the code properly encodes the characters so they are not interpreted as an HTML<a>tag.Testing
I am still working on setting up the bevy-website locally to render the Bevy examples, so I have been unable to test this directly, but I have set up a Zola demo project in my local environment where I was able to reproduce and fix the behavior using the same strategy.I have been able to render the examples locally with the fix, see examples below
Showcase
Issue In Live Site
Issue Resolve In Local Site
Issue Reproduced In Local Zola Project
Issue Resolved In Local Zola Project