md preview: add onChange