For example if I have this in a javascript file:
/*
# Tutorial Title
Welcome to the codebase tutorial.
## Add Function
This function is used to add numbers. `1+2=3` is an example of some backquoted text.
*/
function add(a,b) {
return a + b;
}
/*
## Subtract Function
This function is used to subtract! ***Use at your own risk***
*/
function subtract(a,b) {
return a - b;
}
I would like the resulting markdown to be: # Tutorial Title
Welcome to the codebase tutorial.
## Add Function
This function is used to add numbers. `1+2=3` is an example of some backquoted text.
```
function add(a,b) {
return a + b;
}
```
## Subtract Function
This function is used to subtract! ***Use at your own risk***
```
function subtract(a,b) {
return a - b;
}
```
Does anyone know of a tool which will do this?
sed -e 's/\/\*/```/g' -e 's/\*\//```/g' -e '1d'