Switched markdown lib + minor bug fixes