chore(remark-extend): clarify selection examples

This commit is contained in:
Thomas Allmer 2020-04-16 10:51:18 +02:00 committed by Thomas Allmer
parent 86fdc4dca2
commit 90bb397870

View file

@ -39,13 +39,14 @@ Some examples are:
- `:root` for the top of the markdown file - `:root` for the top of the markdown file
- `:scope:last-child` for the end of the markdown file - `:scope:last-child` for the end of the markdown file
- `heading:has([value=Red])` first heading with a text value of Red (e.g. ### Red) - `heading:has([value=Red])` first heading with a text value of Red (e.g. ### Red)
- `heading[depth=2]` first third level heading (e.g. ## Something) - `heading[depth=2]` first second level heading (e.g. ## Something)
- `heading[depth=2]:has([value=Red]) ~ heading[depth=2]` following h2 after h2 with "Red" (e.g. ## Red ... ## Something)
### Markdown AST ### Markdown AST
All adjustments to the markdown file happen via the markdown AST (Abstract Syntax Tree). All adjustments to the markdown file happen via the markdown AST (Abstract Syntax Tree).
You can explore it via the [ASTExplorer](https://astexplorer.net/). You can explore it via the [ASTExplorer](https://astexplorer.net/). (> Markdown > remark)
```md ```md
### Red ### Red