- 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 = '' - if "#{@id}".start_with?("expandlist") .ulist class=[checklist,@style,role] - if title? .title=title // the id has been moved as the jquery script will search about it to collapse/elapse the list ul id=@id class=(checklist || @style) - items.each do |item| li // We have also removed the

tag element - if checklist && (item.attr? :checkbox) =%(#{(item.attr? :checked) ? marker_checked : marker_unchecked}#{item.text}) - else =item.text - if item.blocks? =item.content - else .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