Improve syntax of the of the custom collapsible sections

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

This issue is following &4381 (comment 478290850)

any possibility of using this kind of syntax to avoid the, in my opinion, really messy syntax of the custom collapsible sections?

Something like this maybe? The problem I mainly see is with the end marker... but the fact that it's so cumbersome to use it's the main reason why we aren't using it unfortunately

container:
  script:
    - !section Docker setup
    - docker login something something
    - !section Build container
    - docker pull cache
    - >
      docker build .
      -t something
      --build-arg something=something
      --build-arg else=else
      --cache-from cache

/cc @@alexviscreanu @thaoyeager

Edited by 🤖 GitLab Bot 🤖