Only show scrollbars if needed in Markdown input