Skip to content

Add implementation #1

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

Merged
merged 11 commits into from
Mar 16, 2023
Merged

Add implementation #1

merged 11 commits into from
Mar 16, 2023

Conversation

remcohaszing
Copy link
Member

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

This adds the initial implementation of the package.

The idea comes from syntax-tree/hast-util-from-html#2

Copy link
Member

@wooorm wooorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome that you created this! Some notes.

  • Some docs stuff
  • Name?
  • Positional info?

remcohaszing and others added 2 commits March 16, 2023 14:38
Co-authored-by: Titus <tituswormer@gmail.com>
Signed-off-by: Remco Haszing <remcohaszing@gmail.com>
remcohaszing and others added 6 commits March 16, 2023 14:48
Co-authored-by: Titus <tituswormer@gmail.com>
Signed-off-by: Remco Haszing <remcohaszing@gmail.com>
This provides a more consistent interface between Node.js and the
browser.
@wooorm
Copy link
Member

wooorm commented Mar 16, 2023

I think it looks good. Anything you’d want me to look at specifically? Anything that needs to be discussed?

@remcohaszing
Copy link
Member Author

I was mostly worried there might be discrepancies between the results in Node.js / the browser regarding fragment / document mode. HTML has so many edge cases 😅.

I think it looks good though. At least good enough for my use case.

@remcohaszing
Copy link
Member Author

The repo may need some settings changes to match the test of the unified ecosystem though.

@wooorm wooorm merged commit 19d7512 into main Mar 16, 2023
@wooorm wooorm deleted the initial-implementation branch March 16, 2023 18:46
@github-actions

This comment was marked as resolved.

Copy link
Member

@ChristianMurphy ChristianMurphy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @remcohaszing!
This looks great!

@wooorm
Copy link
Member

wooorm commented Mar 16, 2023

Released in 1.0.0, thank you!

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

Successfully merging this pull request may close these issues.

3 participants