src/Traits/HasBladeParser.php
public function renderBlade($content, $data = [])
    {
        $content = $this->compileBlade($content);
        $obLevel = ob_get_level();
        ob_start();
        extract($data, EXTR_SKIP);

        try {
            eval('?'.'>'.$content);
        } catch (\Exception $e) {
            while (ob_get_level() > $obLevel) {
                ob_end_clean();
            }
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $obLevel) {
                ob_end_clean();
            }
            throw new \Exception($e);
        }

        $contents = ob_get_clean();

        return $contents;
    }
public function renderBlade($content, $data = [])
    {
        $content = $this->compileBlade($content);
        $obLevel = ob_get_level();
        ob_start();
        extract($data, EXTR_SKIP);

        try {
            eval('?'.'>'.$content);
        } catch (\Exception $e) {
            while (ob_get_level() > $obLevel) {
                ob_end_clean();
            }
            throw $e;
        } catch (\Throwable $e) {
            while (ob_get_level() > $obLevel) {
                ob_end_clean();
            }
            throw new \Exception($e);
        }

        $contents = ob_get_clean();

        return $contents;
    }
public function renderBlade ( $ content , $ data = [ ] ) { $ content = $ this -> compileBlade ( $ content ) ; $ obLevel = ob_get_level ( ) ; ob_start ( ) ; extract ( $ data , EXTR_SKIP ) ; try { eval ( '?' . '>' . $ content ) ; } catch ( \ Exception $ e ) { while ( ob_get_level ( ) > $ obLevel ) { ob_end_clean ( ) ; } throw $ e ; } catch ( \ Throwable $ e ) { while ( ob_get_level ( ) > $ obLevel ) { ob_end_clean ( ) ; } throw new \ Exception ( $ e ) ; } $ contents = ob_get_clean ( ) ; return $ contents ; }
Render markdown contain blade syntax.

@param $content
@param array $data
@return false|string
@throws \Exception
Render markdown contain blade syntax .