-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
V3 Release #347
V3 Release #347
Conversation
Switch to GitHub Actions
add truffleruby-head
Add Rubocop
Support multiple dependencies per filter
Close sanitization-related issues
Yeah you bet! |
Drop SyntaxHighlightFilter
Hey, any interest in upstreaming? |
Yeah of course, sorry I spaced on this. Let me spin something up... Edit: spun up #379 |
@gjtorikian I'm curious, have you considered creating a Rust version of |
I haven't thought about it—but walk me through which part you would want/expect to Rustify ? All I do these days is wrap Rust in Ruby. 😆 V3 moved the bulk of the HTML selection-manipulation logic to using selma, which uses lol-html under the hood. html-pipeline is now just a dumb interface which takes an array of Ruby classes and iterates over their selectors; but the real manipulation work is done in Rust, and the Ruby class just acts as a sort of sugar on top. If anything, I'd like to move towards turning this into an |
I think it would be basically the same as what you have now, just in Rust - given a vector of filters, run through them calling their transformation function, passing results from one to the other. Still coming up to speed on Rust's object oriented features, but it seems like using traits might give you the ability to not only gain default functionality of say a So if we have our own Rust crate which we can move some of our current Ruby filters/pipeline into, then I think we would see some performance win. Haven't yet attempted to migrate to V3 of So I thought you might have something in the works ;-) |
Mostly, this will modernize the gem by dropping old Ruby and Rails implementations. I'm also planning to user kwargs across the filters and methods.
If you're reading this and looking forward to adding a new breaking change, please open an issue to discuss.
Merged PRs for a future changelog:
context
andresult
whitelist
naming