code: function processVersioned (entity, version, versions) {
    quantum.select(entity)
      .selectAll('versioned', {recursive: true})
      .forEach(versioned => {
        const candidateVersionSelections = versioned.selectAll('version')
        const currentVersion = mostRecentVersion(version, candidateVersionSelections, versions)
        if (currentVersion) {
          versioned.addAfter(currentVersion.content())
        }
        versioned.remove()
      })
  }
docs: /* Processes all @versioned sections for a file