Skip to content

Commit

Permalink
doc: improve doc styling
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme committed Jul 10, 2023
1 parent ef2287e commit a129426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/guide/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ast-grep is a new AST based tool for managing your code, at massive scale.
Using ast-grep can be as simple as running a single command in your terminal:

```bash
sg --pattern 'var code = $PATTERN' --rewrite 'let code = $PATTERN' -l js
sg --pattern 'var code = $PAT' --rewrite 'let code = $PAT' --lang js
```

The command above will replace `var` statement with `let` for all JavaScript files.
Expand Down Expand Up @@ -55,7 +55,7 @@ Consider it as same as `grep` but based on AST instead of text.

In comparison to Babel, we can complete this hello-world task in ast-grep trivially

```javascript
```bash
sg -p "console.log"
```

Expand Down

0 comments on commit a129426

Please sign in to comment.