- if (checklist = (option? 'checklist') ? 'checklist' : nil) - if option? 'interactive' - marker_checked = '' - marker_unchecked = '' - else - if @document.attr? :icons, 'font' - marker_checked = '' - marker_unchecked = '' - else / could use ☑ (checked ballot) and ☐ (ballot) w/o font instead - marker_checked = '' - marker_unchecked = '' .ulist id=@id class=[checklist,@style,role] - if title? .title=title ul class=(checklist || @style) - items.each do |item| li p - if checklist && (item.attr? :checkbox) =%(#{(item.attr? :checked) ? marker_checked : marker_unchecked}#{item.text}) - else =item.text - if item.blocks? =item.content