andreaseg / mdgen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple python script to embed external code into markdown files

The script will look for markdown files in its own folder and attempt to replace linked code with markdown code-blocks. The generated files will be placed in the target folder. The syntax for linked code is given by

[code][<language>](<path>)

where <language> decides the syntax highlighting and <path> is the path of the code to be included.

It is also possible to just include some lines from a file

[code][<language>](<path>)[lines=<first>-<last>]

About

License:MIT License


Languages

Language:Python 72.9%Language:C++ 27.1%