add markdown and support move cursor up/down inline