Which sentence is correctly punctuated?

A) Jane Doe, the teacher, is dead.
B) Jane Doe the teacher is dead.
I answered A

Right.