Skip to content
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

Commonmarker 1.0 switches to Rust implementation #456

Open
dentarg opened this issue Feb 18, 2023 · 1 comment
Open

Commonmarker 1.0 switches to Rust implementation #456

dentarg opened this issue Feb 18, 2023 · 1 comment

Comments

@dentarg
Copy link
Member Author

dentarg commented Feb 17, 2024

On the topic of Rust, there's gjtorikian/html-pipeline#368

This completes one of the blocking items for a v3 release: migrating to Selma. Selma's process for parsing html uses lol-html, a Rust library, as its underlying mechanism. It operates purely on CSS selectors, and has a few advantages over the current Nokogiri based mechanism. Namely, in the current systen, text is parsed over multiple times. Each NodeFilter runs its set of CSS selectors synchronously. lol-html, on the other hand, parses the text once, compiles its CSS selectors, and more efficiently allows for text manipulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant