Editing a document containing ==='''Foo'''=== there is no indication that something is 'wrong'.
This is technically a skin-specific issue (although it applies to all WMF skins, and browser-default CSS), and the bold can be seen in a TOC.
That said we should help people avoid creating such content (e.g. on rich-text paste) and identify it so it can be fixed.