Skip to content

Add support for node kinds (hast, xast) #13

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 1 commit into from
Apr 28, 2020
Merged

Add support for node kinds (hast, xast) #13

merged 1 commit into from
Apr 28, 2020

Conversation

wooorm
Copy link
Member

@wooorm wooorm commented Apr 25, 2020

hast and xast are a bit much to look at: every element has a name (xast) or tagName (hast). This makes that cleaner.

Instead of:

element[0] [tagName="br"]

You now get:

element<br>[0]

The angle brackets are in part inspired by their use in XML, but also sometimes used by Node’s util.inspect:

<ref *1> {
  a: [ [Circular *1] ],
  b: <ref *2> { inner: [Circular *2], obj: [Circular *1] }
}

@wooorm wooorm added 🦋 type/enhancement This is great to have 🙉 open/needs-info This needs some more info 🗄 area/interface This affects the public interface labels Apr 25, 2020
@wooorm wooorm merged commit d1f26cc into master Apr 28, 2020
@wooorm wooorm deleted the kinds branch April 28, 2020 07:20
@wooorm wooorm added ⛵️ status/released and removed 🙉 open/needs-info This needs some more info labels Apr 28, 2020
@wooorm wooorm added the 💪 phase/solved Post is done label Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗄 area/interface This affects the public interface 💪 phase/solved Post is done 🦋 type/enhancement This is great to have
Development

Successfully merging this pull request may close these issues.

2 participants