def get_items(self, block):
        items = []
        for line in block.split('\n'):
            m = self.RE.match(line)
            if m:
                # Append to the list
                items.append([m.group(2) in ['x', 'X'], m.group(3)])
            else:
                # This is another line of previous item. Append to that item.
                items[-1][1] = '%s\n%s' % (items[-1][1], line)
        return items
Break a block into list items.
dataset/ETHPy150Open django-bmf/django-bmf/djangobmf/utils/markdown/checklist.py/ChecklistProcessor.get_items