Fixed a bug and improved markdown editor integration.