-
Notifications
You must be signed in to change notification settings - Fork 180
Building MD4C
Martin Mitáš edited this page Dec 15, 2016
·
8 revisions
When embedding the parser into your application, you need only md4c/md4c.h and md4c/md4c.c. Simply add them to your project.
The only thing to care about is the encoding you want to use.
Building MD4C from the source repository or source package is based on cmake and there should be no surprises.
There are no build dependencies (standard C library suffices).
For example, on Linux:
$ cd md4c
$ mkdir build
$ cmake -G ..
$ make
This actually builds the md2html. This utility uses MD4C parser to read a Markdown document and converts it into HTML.
Note the md2html is built with the MD4C's UTF-8 support enabled.