This script runs on a folder and converts all the indented code blocks in markdown files to fenced code blocks.
The script tries to preserve the original markdown formatting.
npm install
node index.js ../../my-project/content/
I bundled the script into a zero-dep single js-exectuable
You can download it and run:
node convert.js ../../my-project/content