better markdown generator for lists