I am trying some documentation for my workspace but this error is bugging me more than expected.
if i need to define my code block style then where?
Or this is something I need to enable or update settings in my VS Code? as i am using VS Code to create this markup file.

The simple solution is to just leave the default setting and edit your Markdown to always use the same style of code blocks consistently throughout. After all, that is the point of a linter. To encourage consistent, well-formed Markdown.
But, of course, you may want to change the default. I'm assuming your are using the markdownlint plugin for VSCode. As stated in the documentation:
Rules can be enabled, disabled, and customized by creating a JSON file named
.markdownlint.jsonc/.markdownlint.jsonor a YAML file named.markdownlint.yaml/.markdownlint.ymlor a JavaScript file named.markdownlint.jsin any directory of a project.
You can create one of the above files at the root of your project, and customize the behavior as you desire. As you don't state what behavior you desire, I will note that there are multiple options for Rule MD046.
consistent (default): Whichever style is found first is enforced for every code block. In other words, all code block must be either indented or fenced. You can't mix them.fenced: All code blocks must be fenced. Any indented code blocks will raise an error.indented: All code blocks must be indented. Any fenced code blocks will raise an error.false: Disable the rule and allow either or both styles of code blocks. Mix or match at will.If you are using a YAML file, it might look like this:
MD046: fenced
Just swap out fenced for the option you prefer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With