the browser-facing portion of osu!
at master 19 lines 626 B view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6namespace App\Libraries\Markdown\CustomContainerInline; 7 8use League\CommonMark\Environment\EnvironmentBuilderInterface; 9use League\CommonMark\Extension\ExtensionInterface; 10 11class Extension implements ExtensionInterface 12{ 13 public function register(EnvironmentBuilderInterface $environment): void 14 { 15 $environment 16 ->addDelimiterProcessor(new Parser()) 17 ->addRenderer(Element::class, new Renderer()); 18 } 19}