markdown output format support

Great library. Any chance the parse tree can become part of the public interface?