Closed JoshDevHub closed 2 months ago
To QA:
/lessons/preview
)Paste this code in. Fence it with triple backticks and add the language ejs
after the opening set of backticks:
<nav>
<ul>
<% for (let i = 0; i < links.length; i++) { %>
<li>
<a href="<%= links[i].href %>">
<span> <%= links[i].text %> </span>
</a>
</li>
<% } %>
</ul>
</nav>
Here's what it currently looks like on main
for comparison:
Because
Code examples using
ejs
weren't being given proper syntax highlighting.This PR
"ejs"
to thelanguages
array in the configuration for Prism (the library used to provide syntax highlighting).Issue
Closes #4497
Additional Information
Pull Request Requirements
keyword: brief description of change
format, using one of the following keywords:Feature
- adds new or amends existing user-facing behaviorChore
- changes that have no user-facing value, refactors, dependency bumps, etcFix
- bug fixesBecause
section summarizes the reason for this PRThis PR
section has a bullet point list describing the changes in this PRIssue
section