gist a href translation, better empty paragraph support