show example only in write mode
fix for empty document class name