public function renderTags($allPosition = true): void
    {
        $output = ob_get_contents();
        $start = 0;
        preg_match_all('/(<!--|\/\*)#tag-position:([\w0-9_:-]+):[\w0-9]+#(-->|\*\/)/', $output, $matches, PREG_OFFSET_CAPTURE);
        ob_clean();

        $this->renderContents($output, $matches, $start);
        $this->validateRenderTags($allPosition);
        $this->resetRenderers();
        $this->resetTagPosition();
    }