OK, it works great... but I added a whitespace to the function to be rendered correctly, if not present we have the text immediately next to `#` and it will be not rendered OK by a lot of markdown parsers:
`{{ cell.source | wordwrap(80, False, '\n'+'#' * cell.level+' ')}}`