-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Labels
stale?Issue that may be closed soon due to the original author not responding any more.Issue that may be closed soon due to the original author not responding any more.type: question or discussionIssue discussing or asking a question about GatsbyIssue discussing or asking a question about Gatsby
Description
Hi there!
Trying to understand a few things related to gatsby-remark-prismjs
and how it may (or may not) differ from regular prismjs
.
The prism site has an example of diff-highlighting and I'm trying to recreate that in my site (here's my post).
Github's preview is a good example of what I'm striving for:
On my site, however, I can't seem to figure out how to get highlights - whether language specific or not:
I've tried
```diff-javascript
```diff javascript
And several other variants, but to no avail.
Interestingly, diff-javascript
results in some weird encoding (note the undefined
values that get appended to the ends of lines):
My questions:
- Does
gatsby-remark-prismjs
support multi-language (diff + javascript for example)? - Does
gatsby-remark-prismjs
support line-highlighting (with the green/red, not the standard highlighting)?
Thanks!
Metadata
Metadata
Assignees
Labels
stale?Issue that may be closed soon due to the original author not responding any more.Issue that may be closed soon due to the original author not responding any more.type: question or discussionIssue discussing or asking a question about GatsbyIssue discussing or asking a question about Gatsby