app/Filter.php
public static function formatText(string $text, Tree $tree): string
    {
        switch ($tree->getPreference('FORMAT_TEXT')) {
            case 'markdown':
                return '<div class="markdown" dir="auto">' . self::markdown($text, $tree) . '</div>';
            default:
                return '<div class="markdown" style="white-space: pre-wrap;" dir="auto">' . self::expandUrls($text, $tree) . '</div>';
        }
    }
public static function formatText(string $text, Tree $tree): string
    {
        switch ($tree->getPreference('FORMAT_TEXT')) {
            case 'markdown':
                return '<div class="markdown" dir="auto">' . self::markdown($text, $tree) . '</div>';
            default:
                return '<div class="markdown" style="white-space: pre-wrap;" dir="auto">' . self::expandUrls($text, $tree) . '</div>';
        }
    }
public static function formatText ( string $ text , Tree $ tree ) : string { switch ( $ tree -> getPreference ( 'FORMAT_TEXT' ) ) { case 'markdown' : return '<div class="markdown" dir="auto">' . self :: markdown ( $ text , $ tree ) . '</div>' ; default : return '<div class="markdown" style="white-space: pre-wrap;" dir="auto">' . self :: expandUrls ( $ text , $ tree ) . '</div>' ; } }
Format block-level text such as notes or transcripts, etc.

@param string $text
@param Tree   $tree

@return string
Format block - level text such as notes or transcripts etc .