add filter to sanitize md headers according to level