Generates source code from markdown files.
hello-world.md:
# Hello World
This is a hello-world example:
```c
printf("Hello World\n");
```
Run md2code --lang c --include stdio.h hello-world.md
:
#include <stdio.h>
////////////////////////////////////////////////////////////////////////////////
// # Hello World
//
// This is a hello-world example:
static void line_4(void) {
printf("Hello World\n");
}
////////////////////////////////////////////////////////////////////////////////
int main(int argc, char *argv[]) {
line_4();
return 0;
}
- c
- shell script