2D platform AI with A*

Hey everyone I am currently trying to make enemies in my platform using A* and everything works perfectly the only issue I am running into is that whenever there is terrain or a gap the enemy wont jump. How would I go around to programming this so whenever there is terrain, an obstacle, or a gap the AI will know to jump! Thanks in advance!