-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Unsupported diff-* highlighting #28
Comments
See #46 |
@peterjcaulfield Right, I'm aware of that manual syntax, but that's different, and very hard to maintain for complex diffs. Whereas real diff syntax support can be applied to unifieddiffs copied from Git. |
Yep gotcha. It seems like there are issues with a number of Prism plugins when used in a Node env. |
Starting with now-available v3.2.1 of this plugin, you can use |
Amazing, thanks! |
With the following in my ```diff-js I end up with this (only the +/- lines have been tokenized). Should this work now and/or am I missing something?
edit some more: think I'm talking nonsense – seems like the amount of indentation is important, and I hadn't indented certain lines by the right amount. Please ignore me |
Prism allows convenient diff line highlighting with preservation of underlying syntax highlighting via a Diff Highlight plugin: https://prismjs.com/plugins/diff-highlight/
However, trying to use it via 11ty via e.g.
```diff-javascript
tag currently fails withLooks like this might require some special handling similarly to TypeScript tag?
The text was updated successfully, but these errors were encountered: