Centralize chapter creation between markdown and report