You can find the modified version of re2c here:
You can find an example here:
The example is modified version of the re2c parts of the CommonMark cmark library. Note that while that is a reasonable real-world example, the example project lacks all the context around the lexers and is not a MarkDown parser.
If you are interested in collaborating, drop a mail in my public inbox!