@props(['content' => '', 'class' => '', 'inline' => false, 'limit' => null])

@php
    $displayContent = $limit ? \Illuminate\Support\Str::limit($content, $limit) : $content;
@endphp

<span class="math-text {{ $class }}" {{ $inline ? '' : 'style="display: block;"' }}>
    {!! $displayContent !!}
</span>