Promote or demote headings while preserving the document outline