Many word processors (Microsoft Word, LibreOffice Writer, etc.) and some online editors will auto convert double hyphens "--" as they are typed into an em dash.