- /**
- * Convert the given comment Markdown to HTML.
- */
- public function commentToHtml(string $commentText): string
- {
- $converter = new CommonMarkConverter([
- 'html_input' => 'strip',
- 'max_nesting_level' => 10,
- 'allow_unsafe_links' => false,
- ]);
-
- return $converter->convert($commentText);
- }
-