allow YAML as slide content
replace ifelse loop with if.. else..