rewrite of markup plugin