| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Markdown |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Parse a Markdown string into HTML. |
||
| 15 | * |
||
| 16 | * If a source model is provided, the Markdown will be converted using the dynamic MarkdownService, |
||
| 17 | * otherwise, the pre-configured singleton from the service container will be used instead. |
||
| 18 | * |
||
| 19 | * @return string $html |
||
| 20 | */ |
||
| 21 | public static function parse(string $markdown, ?string $sourceModel = null): string |
||
| 28 |