-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Grouping by line #8
Comments
Here is a more complete (and working) example: https://stackblitz.com/edit/js-r2mz9b |
@conorhastings anything we could port over from your library to here? Seems you've worked out a few things already that I'd like to implement in refractor too, and maybe it doesn't make sense to have them in two places. What do you think? |
@wooorm definitely, line handling in prism was the easier of the two, let me see if i can pull out my code and take away lowlight specific stuff |
Any luck with this? You can see my implementation here: https://github.com/swimlane/DocSPA/blob/master/projects/swimlane/docspa-core/src/lib/plugins/prisim.ts#L32 |
@Hypercubed sorry been super busy traveling for work, I'll compare our implementations this weekend for sure and I if think i have any worthwhile contribution here, sorry about the long delay |
No worries... I'm willing to contribute if I can. |
I’m not sure anymore if refractor should include this here. It could be a plugin though, working the same way as prism’s line-numbers. I do think the core of I do think having the plugins work with refractor, and I’d include links to ports here! |
Closing as I don’t think it needs code changes here btw, but would like to chat about a plugin! |
Any luck using line highlighting here? |
Here I made a utility to group refractor ASTs by lines: https://github.com/suin/refractor-group-by-lines |
I've been considering how to add line highlights similar to https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-remark-prismjs . This is what I came up with:
Do you think this is something we could add to refractor itself?
The text was updated successfully, but these errors were encountered: