converts the side bar into markdown