<?php
 namespace Modules\Admin\Config\Assistant; class View_SetupGuide extends \App\Mvc\View_Popup_GeneralAbstract { protected $renderingTemplate=null; public function convertMarkdownToHtml($markdownStr): string { $converter = new \League\CommonMark\CommonMarkConverter([ 'html_input' => 'escape', 'allow_unsafe_links' => true, ]); return $converter->convert($markdownStr); } public function render(): string { $markdownContent = $this->getInput('content'); $htmlContent = $this->convertMarkdownToHtml($markdownContent); $this->setOutputVar('content', $htmlContent); $this->setOutputVar('title', $this->getInput('title')); return $this->render_smarty('setupGuide.tpl'); } } 