<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Markdown; use Illuminate\Support\Str; class MarkdownUtil { public static function convertToHtml($sOXhD) { goto EK9bn; RQ_Nr: $r7pnt = new MarkConverter(array('renderer' => array('soft_break' => '<br />'))); goto CwsPr; EK9bn: if (PHP_VERSION_ID >= 80000) { return Str::of($sOXhD)->markdown(); } goto RQ_Nr; CwsPr: return $r7pnt->convertToHtml($sOXhD); goto sA2Y1; sA2Y1: } }