dry up redundant markdown option code