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?
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
If you are using prettier as your formatter, consider ignore the .md file in
.prettierignore
Use backslash () before every single asterisk (*). For example:
Input:
Output:
* Cheese car