Fix regex that generates html for 'new' keyword (close #1201)