Misc updates with shell mode and markdown previews