add generic mark toggle to marking formats
#607
Merged
generic mark toggle to marking formats
#607