<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Markdown; use League\CommonMark\CommonMarkConverter; use League\CommonMark\Environment; use Webuni\CommonMark\TableExtension\TableExtension; class MarkdownUtil { public static function convertToHtml($ZZ3V7) { $VR6S5 = new MarkConverter(array('renderer' => array('soft_break' => '<br />'))); return $VR6S5->convertToHtml($ZZ3V7); } } class MarkConverter extends CommonMarkConverter { public function __construct(array $DxXWh = array(), Environment $D0mZm = null) { goto EckKr; BSi2B: parent::__construct($DxXWh, $D0mZm); goto Qogm6; EckKr: $D0mZm = Environment::createCommonMarkEnvironment(); goto PmDaC; PmDaC: $D0mZm->addExtension(new TableExtension()); goto BSi2B; Qogm6: } }