Abstracting out markup for timeline.