Stop smart dashes from interfering with HTML comments.
Stop smart dashes from interfering with HTML comments.

This uses a regex lookahead to ensure there is no > after the double
dash. If it matches either the beginning of the line, or any characters
other than <!, then it replaces the double dash with an en dash.

JoshTheGeek-graveyard/typogr.js,ekalinin/typogr.js,JoshTheGeek-graveyard/typogr.js,ekalinin/typogr.js