skip to Main Content

When I save my README.md file in vscode, it auto formats * to -.

FOr example:

* Cheese car

is converted to:

- Cheese car

How to prevent this?

2

Answers


  1. If you are using prettier as your formatter, consider ignore the .md file in .prettierignore

    *.md
    
    Login or Signup to reply.
  2. Use backslash () before every single asterisk (*). For example:

    Input:

    * Cheese car
    

    Output:

    * Cheese car

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search