Render the dict.

def _render_content_dict(self, content, depth, dstack, **settings):
        """
        Render the dict.
        """
        result = []
        i = 0
        size = len(content)
        for key in sorted(content):
            ds = [(depth, i, size)]
            ds = dstack + ds
            if isinstance(content[key], dict):
                result.append(self._render_item(ds, key, **settings))
                result += self._render_content_dict(content[key], depth + 1, ds, **settings)
            elif isinstance(content[key], list):
                result.append(self._render_item(ds, key, **settings))
                result += self._render_content_list(content[key], depth + 1, ds, **settings)
            else:
                result.append(self._render_item(ds, key, content[key], **settings))
            i += 1
        return result