Solve markdown nesting problem