A markdown implementation forked from cpp-markdown.
It is intended for marketo.
Note: The implementation won't 100% support CommonMark, but aims to pass the most significant test case. If you find an important test case libmdcpp hasn't pass or a case that would make it crash, please tell me in the issues.
First of all, you need to install the dependencies. In Debian Sid, just
sudo apt-get install g++ cmake libboost-regex-dev
Then compile and install
git clone https://github.com/sadhen/libmdcpp
cd libmdcpp/
mkdir build && cd build/
# if you do not specify CMAKE_INSTALL_PREFIX
# the library will be installed in /usr/local
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
sudo make install
MIT