add m/g tags to marked posts.

With minor changes on badge padding.