4
4
5
5
[ ![ Build Status] [ travis-badge ]] [ travis ] [ ![ Dependency Status] [ david-badge ]] [ david ]
6
6
7
- Select [ Unist] nodes with CSS-like selectors.
7
+ Select [ Unist] [ ] nodes with CSS-like selectors.
8
8
9
9
[ unist ] : https://github.com/wooorm/unist
10
10
@@ -28,7 +28,7 @@ Get all TODO items from this list:
28
28
3. TODO Step 3.3.
29
29
```
30
30
31
- [ remark] takes this Markdown as an input and returns unist syntax tree. After that, we use ` unist-util-select ` to extract the required parts:
31
+ [ remark] [ ] takes this Markdown as an input and returns unist syntax tree. After that, we use ` unist-util-select ` to extract the required parts:
32
32
33
33
``` js
34
34
var select = require (' unist-util-select' );
@@ -52,33 +52,33 @@ All the relevant parts of [Selectors Level 3][spec]:
52
52
53
53
[ spec ] : http://www.w3.org/TR/css3-selectors/
54
54
55
- - [x] Type selectors: ` paragraph `
56
- - [x] Descendant selectors: ` paragraph text `
57
- - [x] Child selectors: ` paragraph > text `
58
- - [x] Sibling selectors: ` paragraph ~ text `
59
- - [x] Adjacent sibling selectors: ` paragraph + text `
60
- - [x] Group selectors: ` paragraph, text `
61
- - [x] Universal selector: ` * `
62
- - [x] Attribute selectors: ` text[value*="substr"] `
63
- - [x] Existence: ` [value] `
64
- - [x] Equality: ` [value="foo"] `
65
- - [x] Begins with: ` [value^="prefix"] `
66
- - [x] Containment: ` [value*="substr"] `
67
- - [x] Ends with: ` [value$="suffix"] `
68
- - [x] Structural pseudo-classes: ` paragraph:first-of-type `
69
- - [x] ` :root `
70
- - [x] ` :nth-child(2n+1) `
71
- - [x] ` :nth-last-child(2n+1) `
72
- - [x] ` :nth-of-type(2n+1) `
73
- - [x] ` :nth-last-of-type(2n+1) `
74
- - [x] ` :first-child `
75
- - [x] ` :last-child `
76
- - [x] ` :first-of-type `
77
- - [x] ` :last-of-type `
78
- - [x] ` :only-child `
79
- - [x] ` :only-of-type `
80
- - [x] ` :empty `
81
- - [x] Negation pseudo-class: ` *:not(paragraph) `
55
+ - [x] Type selectors: ` paragraph `
56
+ - [x] Descendant selectors: ` paragraph text `
57
+ - [x] Child selectors: ` paragraph > text `
58
+ - [x] Sibling selectors: ` paragraph ~ text `
59
+ - [x] Adjacent sibling selectors: ` paragraph + text `
60
+ - [x] Group selectors: ` paragraph, text `
61
+ - [x] Universal selector: ` * `
62
+ - [x] Attribute selectors: ` text[value*="substr"] `
63
+ - [x] Existence: ` [value] `
64
+ - [x] Equality: ` [value="foo"] `
65
+ - [x] Begins with: ` [value^="prefix"] `
66
+ - [x] Containment: ` [value*="substr"] `
67
+ - [x] Ends with: ` [value$="suffix"] `
68
+ - [x] Structural pseudo-classes: ` paragraph:first-of-type `
69
+ - [x] ` :root `
70
+ - [x] ` :nth-child(2n+1) `
71
+ - [x] ` :nth-last-child(2n+1) `
72
+ - [x] ` :nth-of-type(2n+1) `
73
+ - [x] ` :nth-last-of-type(2n+1) `
74
+ - [x] ` :first-child `
75
+ - [x] ` :last-child `
76
+ - [x] ` :first-of-type `
77
+ - [x] ` :last-of-type `
78
+ - [x] ` :only-child `
79
+ - [x] ` :only-of-type `
80
+ - [x] ` :empty `
81
+ - [x] Negation pseudo-class: ` *:not(paragraph) `
82
82
83
83
## API
84
84
0 commit comments