def METHOD_NAME(block, k, i, state):
    def_footnotes = state['def_footnotes']
    text = def_footnotes[k]
    stripped_text = text.strip()
    if '\n' not in stripped_text:
        children = [{'type': 'paragraph', 'text': stripped_text}]
    else:
        lines = text.splitlines()
        for second_line in lines[1:]:
            if second_line:
                break
        spaces = len(second_line) - len(second_line.lstrip())
        pattern = re.compile(r'^ {' + str(spaces) + r',}', flags=re.M)
        text = pattern.sub('', text)
        children = block.parse_text(text, state)
        if not isinstance(children, list):
            children = [children]
    return {
        'type': 'footnote_item',
        'children': children,
        'params': (k, i)
    }