Update markup of ruler