mirror of
https://github.com/ericchiang/pup
synced 2025-02-17 01:32:00 +00:00
Fix broken Markdown headings
This commit is contained in:
parent
de7d63ab19
commit
e5aaefb00a
14
README.md
14
README.md
@ -57,7 +57,7 @@ Download a webpage with wget.
|
|||||||
$ wget http://en.wikipedia.org/wiki/Robots_exclusion_standard -O robots.html
|
$ wget http://en.wikipedia.org/wiki/Robots_exclusion_standard -O robots.html
|
||||||
```
|
```
|
||||||
|
|
||||||
####Clean and indent
|
#### Clean and indent
|
||||||
|
|
||||||
By default pup will fill in missing tags and properly indent the page.
|
By default pup will fill in missing tags and properly indent the page.
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ $ cat robots.html | pup --color
|
|||||||
# cleaned, indented, and colorful HTML
|
# cleaned, indented, and colorful HTML
|
||||||
```
|
```
|
||||||
|
|
||||||
####Filter by tag
|
#### Filter by tag
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cat robots.html | pup 'title'
|
$ cat robots.html | pup 'title'
|
||||||
@ -77,7 +77,7 @@ $ cat robots.html | pup 'title'
|
|||||||
</title>
|
</title>
|
||||||
```
|
```
|
||||||
|
|
||||||
####Filter by id
|
#### Filter by id
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cat robots.html | pup 'span#See_also'
|
$ cat robots.html | pup 'span#See_also'
|
||||||
@ -86,7 +86,7 @@ $ cat robots.html | pup 'span#See_also'
|
|||||||
</span>
|
</span>
|
||||||
```
|
```
|
||||||
|
|
||||||
####Filter by attribute
|
#### Filter by attribute
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cat robots.html | pup 'th[scope="row"]'
|
$ cat robots.html | pup 'th[scope="row"]'
|
||||||
@ -113,7 +113,7 @@ $ cat robots.html | pup 'th[scope="row"]'
|
|||||||
</th>
|
</th>
|
||||||
```
|
```
|
||||||
|
|
||||||
####Pseudo Classes
|
#### Pseudo Classes
|
||||||
|
|
||||||
CSS selectors have a group of specifiers called ["pseudo classes"](
|
CSS selectors have a group of specifiers called ["pseudo classes"](
|
||||||
https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes) which are pretty
|
https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes) which are pretty
|
||||||
@ -150,7 +150,7 @@ For a complete list, view the [implemented selectors](#implemented-selectors)
|
|||||||
section.
|
section.
|
||||||
|
|
||||||
|
|
||||||
####`+`, `>`, and `,`
|
#### `+`, `>`, and `,`
|
||||||
|
|
||||||
These are intermediate characters that declare special instructions. For
|
These are intermediate characters that declare special instructions. For
|
||||||
instance, a comma `,` allows pup to specify multiple groups of selectors.
|
instance, a comma `,` allows pup to specify multiple groups of selectors.
|
||||||
@ -165,7 +165,7 @@ $ cat robots.html | pup 'title, h1 span[dir="auto"]'
|
|||||||
</span>
|
</span>
|
||||||
```
|
```
|
||||||
|
|
||||||
####Chain selectors together
|
#### Chain selectors together
|
||||||
|
|
||||||
When combining selectors, the HTML nodes selected by the previous selector will
|
When combining selectors, the HTML nodes selected by the previous selector will
|
||||||
be passed to the next ones.
|
be passed to the next ones.
|
||||||
|
Loading…
Reference in New Issue
Block a user