You can't just jump up, you have to jump diagonally and snag yourself onto the wall to get up. As for the gap, if you jump right after leaving the edge of the platform the orange gravity doesn't apply.