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