We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Information
Description
Prism seems to be having trouble parsing more complicated ERB examples. Here's a ViewComponents example that it's parsing incorrectly:
If it helps, here's a link to the PR where I introduced ERB syntax highlighting into my project: primer/doctocat#203
Code snippet
<div style="padding-left: 60px"> <%= render(Primer::TimelineItemComponent.new) do |component| %> <% component.slot(:avatar, src: "https://github.com/github.png", alt: "github") %> <% component.slot(:badge, bg: :green, color: :white, icon: :check) %> <% component.slot(:body) { "Success!" } %> <% end %> </div>
The text was updated successfully, but these errors were encountered:
That's because you are using Ruby to highlight the snippet instead of ERB. With ERB, the snippet is highlighted just fine. See for yourself here.
Sorry, something went wrong.
No branches or pull requests
Information
Description
Prism seems to be having trouble parsing more complicated ERB examples. Here's a ViewComponents example that it's parsing incorrectly:
If it helps, here's a link to the PR where I introduced ERB syntax highlighting into my project: primer/doctocat#203
Code snippet
The code being highlighted incorrectly.
The text was updated successfully, but these errors were encountered: