-
Notifications
You must be signed in to change notification settings - Fork 147
Embedding Parser: Implementing Renderer
Martin Mitáš edited this page Jul 12, 2017
·
2 revisions
MD4C project contains a simple utility, md2html
, which converts Markdown input to the corresponding HTML output.
The utility uses MD4C parser to analyze the input. The renderer implementation is in md2html/render_html.c
. Applications which want to convert Markdown to HTML can reuse this implementation more-or-less without any major change.
Given how relatively trivial HTML renderer is, it can also serve as a good example code how to implement your own renderer.