Framework for parsing markdown into a structure to pass back to jni