improve directive `contents` and `#section`
improve the consistency of section structure