Update markup toggle logic.